mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] m68k: NULL noise removal
Signed-off-by: Al Viro <[email protected]> Cc: Roman Zippel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
031eb4cdde
commit
a5d361fc24
10 changed files with 16 additions and 16 deletions
|
|
@ -239,7 +239,7 @@ static int adb_iop_write(struct adb_request *req)
|
|||
|
||||
local_irq_save(flags);
|
||||
|
||||
req->next = 0;
|
||||
req->next = NULL;
|
||||
req->sent = 0;
|
||||
req->complete = 0;
|
||||
req->reply_len = 0;
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ static int macii_write(struct adb_request *req)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
req->next = 0;
|
||||
req->next = NULL;
|
||||
req->sent = 0;
|
||||
req->complete = 0;
|
||||
req->reply_len = 0;
|
||||
|
|
@ -295,7 +295,7 @@ static void macii_poll(void)
|
|||
unsigned long flags;
|
||||
|
||||
local_irq_save(flags);
|
||||
if (via[IFR] & SR_INT) macii_interrupt(0, 0, 0);
|
||||
if (via[IFR] & SR_INT) macii_interrupt(0, NULL, NULL);
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ maciisi_write(struct adb_request* req)
|
|||
req->complete = 1;
|
||||
return -EINVAL;
|
||||
}
|
||||
req->next = 0;
|
||||
req->next = NULL;
|
||||
req->sent = 0;
|
||||
req->complete = 0;
|
||||
req->reply_len = 0;
|
||||
|
|
@ -421,7 +421,7 @@ maciisi_poll(void)
|
|||
|
||||
local_irq_save(flags);
|
||||
if (via[IFR] & SR_INT) {
|
||||
maciisi_interrupt(0, 0, 0);
|
||||
maciisi_interrupt(0, NULL, NULL);
|
||||
}
|
||||
else /* avoid calling this function too quickly in a loop */
|
||||
udelay(ADB_DELAY);
|
||||
|
|
|
|||
|
|
@ -493,7 +493,7 @@ pmu_queue_request(struct adb_request *req)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
req->next = 0;
|
||||
req->next = NULL;
|
||||
req->sent = 0;
|
||||
req->complete = 0;
|
||||
local_irq_save(flags);
|
||||
|
|
@ -717,7 +717,7 @@ pmu_handle_data(unsigned char *data, int len, struct pt_regs *regs)
|
|||
printk(KERN_ERR "PMU: extra ADB reply\n");
|
||||
return;
|
||||
}
|
||||
req_awaiting_reply = 0;
|
||||
req_awaiting_reply = NULL;
|
||||
if (len <= 2)
|
||||
req->reply_len = 0;
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue