mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
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>
This commit is contained in:
parent
d342c06043
commit
6e1edc0f8b
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user