projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e202d4c
)
net: atm: remove redundant null pointer check on dev->name
author
Colin Ian King
<colin.king@canonical.com>
Tue, 16 Aug 2016 11:08:42 +0000
(12:08 +0100)
committer
David S. Miller
<davem@davemloft.net>
Fri, 19 Aug 2016 04:03:48 +0000
(21:03 -0700)
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>
net/atm/mpc.c
patch
|
blob
|
blame
|
history
diff --git
a/net/atm/mpc.c
b/net/atm/mpc.c
index 0e982222d4255dbbc5ec9818e65af1145e086a03..3b3b1a292ec8e2e862d7fde7b5b258a2f72c5a6a 100644
(file)
--- 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) {