]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: intel: Eliminate useless conditions and variables
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Apr 2020 15:02:52 +0000 (18:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 19:50:15 +0000 (12:50 -0700)
commitf4843d487d0a36bc367c47dd850a7adc53f5e637
treeec70a0e82bc047e24ef805713e965b815d923009
parentdedc48d44b01fa643c2cbdf5c4811b22c386dd25
stmmac: intel: Eliminate useless conditions and variables

There are useless conditions like

func()
{
...
int ret;
...
ret = foo();
if (ret)
return ret;

return 0;
}

which may be replaced with direct return statement, what we have done here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c