From: Colin Ian King Date: Tue, 16 Aug 2016 11:08:42 +0000 (+0100) Subject: net: atm: remove redundant null pointer check on dev->name X-Git-Tag: v4.9.8~1128^2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d135e4f263af7da3c2fbe5f99b377cf483b6adf;p=platform%2Fkernel%2Flinux-rpi3.git net: atm: remove redundant null pointer check on dev->name dev->name is a char array of IFNAMSIZ elements, hence can never be null, so the null pointer check is redundant. Remove it. Signed-off-by: Colin Ian King Signed-off-by: David S. Miller --- diff --git a/net/atm/mpc.c b/net/atm/mpc.c index 0e98222..3b3b1a292 100644 --- a/net/atm/mpc.c +++ b/net/atm/mpc.c @@ -1007,7 +1007,7 @@ static int mpoa_event_listener(struct notifier_block *mpoa_notifier, if (!net_eq(dev_net(dev), &init_net)) return NOTIFY_DONE; - if (dev->name == NULL || strncmp(dev->name, "lec", 3)) + if (strncmp(dev->name, "lec", 3)) return NOTIFY_DONE; /* we are only interested in lec:s */ switch (event) {