]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: return directly in ocelot_cls_flower_{replace, destroy}
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 29 Feb 2020 14:31:08 +0000 (16:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 02:57:29 +0000 (18:57 -0800)
commit9fc3f33cf3a435fb8d75b7daf0d9a2d5ec9a6559
tree564534a12b09b1d62b807e394be34595112a7d61
parent810f9eb5683b3f10d63a5e24fcf5b6bf59d772aa
net: mscc: ocelot: return directly in ocelot_cls_flower_{replace, destroy}

There is no need to check the "ret" variable, one can just return the
function result back to the caller.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Allan W. Nielsen <allan.nielsen@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_flower.c