diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-08-16 12:08:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-18 21:03:48 -0700 |
commit | 0d135e4f263af7da3c2fbe5f99b377cf483b6adf (patch) | |
tree | c6fe777b9dbd5b08080474ac45f330a9ba86a294 /net | |
parent | e202d4c6350506e036bbd63a1fca1400960c8ab6 (diff) | |
download | linux-0d135e4f263af7da3c2fbe5f99b377cf483b6adf.tar.gz linux-0d135e4f263af7da3c2fbe5f99b377cf483b6adf.tar.bz2 linux-0d135e4f263af7da3c2fbe5f99b377cf483b6adf.zip |
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 <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/mpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/mpc.c b/net/atm/mpc.c index 0e982222d425..3b3b1a292ec8 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) { |