]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net: emaclite: Simplify if-else statements
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Thu, 28 Jun 2018 13:11:47 +0000 (18:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 11:15:44 +0000 (20:15 +0900)
commitaa5848bc4043abf92c0b72a636bbc0cbe2828fed
tree35fc854cfe6930aa1670a9fe53f2f26f73b396b0
parent21d61166cada03405db7ad2d985b3c2c0e46e074
net: emaclite: Simplify if-else statements

Remove else as it is not required with if doing a return.
It also coalesce the format onto a single line and add the
missing space after the comma. Fixes below checkpatch warning-

WARNING: else is not generally useful after a break or return

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c