diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-03-10 23:09:14 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-10 19:29:45 -0800 |
commit | 6e1edc0f8bd9c447b152c29252a9915225d7b8cc (patch) | |
tree | 36ce44657de4f3742e30910c8ec71b39e50c96b5 /drivers/staging/unisys | |
parent | d342c060433a0f5b6b710cf2ab2591576c2f2d62 (diff) | |
download | blackbird-op-linux-6e1edc0f8bd9c447b152c29252a9915225d7b8cc.tar.gz blackbird-op-linux-6e1edc0f8bd9c447b152c29252a9915225d7b8cc.zip |
staging: unisys: visornic: Remove unnecessary else after return
This patch fixes the checkpatch warning that else is not generally
useful after a break or return.
This was done using Coccinelle:
@@
expression e2;
statement s1;
@@
if(e2) { ... return ...; }
-else
s
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r-- | drivers/staging/unisys/visornic/visornic_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 6749c4e1c901..be0d057346c3 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -760,9 +760,8 @@ static unsigned long devdata_xmits_outstanding(struct visornic_devdata *devdata) if (devdata->chstat.sent_xmit >= devdata->chstat.got_xmit_done) return devdata->chstat.sent_xmit - devdata->chstat.got_xmit_done; - else - return (ULONG_MAX - devdata->chstat.got_xmit_done - + devdata->chstat.sent_xmit + 1); + return (ULONG_MAX - devdata->chstat.got_xmit_done + + devdata->chstat.sent_xmit + 1); } /** |