]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: remove a redundant check for card->dev
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 28 Feb 2019 17:59:40 +0000 (18:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 20:55:26 +0000 (12:55 -0800)
commitc6c5d6a3119457c7e877f369ff0eb0920d88d039
tree94d3059d98e730563c6b5eaf3e9255334d93ee88
parent16e3cde88f5cd8c4bd3d4618073dacce7d70ceff
s390/qeth: remove a redundant check for card->dev

smatch complains that __qeth_l3_set_offline() first accesses card->dev,
and then later checks whether the pointer is valid.
Since commit 2b7a295719fd ("s390/qeth: allocate netdevice early"), the
pointer is _always_ valid - that patch merely missed to remove this one
check.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l3_main.c