mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
scsi: atp870u: clean up code style and indentation issues
Clean up { brace to fix cppcheck warning. Remove some trailing spaces at end of a statement. Also clean up an indentation issue. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
ddd90623ce
commit
22c0738b64
@ -194,12 +194,11 @@ static irqreturn_t atp870u_intr_handle(int irq, void *dev_id)
|
|||||||
((unsigned char *) &adrcnt)[2] = atp_readb_io(dev, c, 0x12);
|
((unsigned char *) &adrcnt)[2] = atp_readb_io(dev, c, 0x12);
|
||||||
((unsigned char *) &adrcnt)[1] = atp_readb_io(dev, c, 0x13);
|
((unsigned char *) &adrcnt)[1] = atp_readb_io(dev, c, 0x13);
|
||||||
((unsigned char *) &adrcnt)[0] = atp_readb_io(dev, c, 0x14);
|
((unsigned char *) &adrcnt)[0] = atp_readb_io(dev, c, 0x14);
|
||||||
if (dev->id[c][target_id].last_len != adrcnt)
|
if (dev->id[c][target_id].last_len != adrcnt) {
|
||||||
{
|
k = dev->id[c][target_id].last_len;
|
||||||
k = dev->id[c][target_id].last_len;
|
|
||||||
k -= adrcnt;
|
k -= adrcnt;
|
||||||
dev->id[c][target_id].tran_len = k;
|
dev->id[c][target_id].tran_len = k;
|
||||||
dev->id[c][target_id].last_len = adrcnt;
|
dev->id[c][target_id].last_len = adrcnt;
|
||||||
}
|
}
|
||||||
#ifdef ED_DBGP
|
#ifdef ED_DBGP
|
||||||
printk("dev->id[c][target_id].last_len = %d dev->id[c][target_id].tran_len = %d\n",dev->id[c][target_id].last_len,dev->id[c][target_id].tran_len);
|
printk("dev->id[c][target_id].last_len = %d dev->id[c][target_id].tran_len = %d\n",dev->id[c][target_id].last_len,dev->id[c][target_id].tran_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user