mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
staging: xillybus: Clarified the stop condition for a loop
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Eli Billauer <eli.billauer@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae870e5d04
commit
1af1ea6b2c
1 changed files with 2 additions and 2 deletions
|
|
@ -172,9 +172,9 @@ irqreturn_t xillybus_isr(int irq, void *data)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
buf_size = i;
|
||||
buf_size = i + 2;
|
||||
|
||||
for (i = 0; i <= buf_size; i += 2) { /* Scan through messages */
|
||||
for (i = 0; i < buf_size; i += 2) { /* Scan through messages */
|
||||
opcode = (buf[i] >> 24) & 0xff;
|
||||
|
||||
msg_dir = buf[i] & 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue