Tag: 5ac0fd00e1681ef6f929f651124da77f5ca7e564

IBM-EMAC: Deletion of unnecessary checks before the function call “of_dev_put”

Author: Markus Elfring <elfring@users.sourceforge.net> The of_dev_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: David S. Miller — drivers/net/ethernet/ibm/emac/core.c | 24 ++++++++—————- 1 file changed, 8 insertions(+), 16 deletions(-)   …

Continue reading