summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-dln2.c
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-03-17 03:51:13 -0400
committerWolfram Sang <wsa@the-dreams.de>2015-03-27 16:53:42 +0100
commitd9e1f4417a43cd0871253b2158eae07a48d656b5 (patch)
tree99773d332d038a1e01762d7163d83fbf6537322b /drivers/i2c/busses/i2c-dln2.c
parent9c836d0c44798227a75c410cf33a76992cf93437 (diff)
i2c: davinci: fixup wait_for_completion_timeout handling
wait_for_completion_timeout return 0 (timeout) or >=1 (completion) so the check for >= 0 is always true and can be dropped implying that r==-EREMOTEIO and thus the return of -EREMOTEIO can be done in the if (dev->buf_len) branch. As wait_for_completion_timeout returns unsigned long not int, and int r is exclusively used for wait_for_completion_timeout it is renamed and the type changed to unsigned long. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Acked-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-dln2.c')
0 files changed, 0 insertions, 0 deletions