summaryrefslogtreecommitdiffstats
path: root/drivers/net/slip.c
diff options
context:
space:
mode:
authorMatvejchikov Ilya <matvejchikov@gmail.com>2011-07-12 21:46:57 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-13 02:31:39 -0700
commit9173a88f46bf53e2fa85337563b39e13c43c7f2e (patch)
tree31d9240e04a9313fc7ca151a56e541c866d0daf1 /drivers/net/slip.c
parente28634d6b229dec216596298c765c203d6b6fa4c (diff)
downloadlinux-9173a88f46bf53e2fa85337563b39e13c43c7f2e.tar.gz
linux-9173a88f46bf53e2fa85337563b39e13c43c7f2e.tar.bz2
linux-9173a88f46bf53e2fa85337563b39e13c43c7f2e.zip
slip: remove redundant check slip_devs for NULL
As slip_devs is initialized on module load stage there is no reason to check it for NULL anywhere instead of the deinitialization routine because if we can't get enough memory on startup we don't run at all. Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/slip.c')
-rw-r--r--drivers/net/slip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c
index d724d47d254f..6f97c5983c55 100644
--- a/drivers/net/slip.c
+++ b/drivers/net/slip.c
@@ -726,9 +726,6 @@ static struct slip *sl_alloc(dev_t line)
struct net_device *dev = NULL;
struct slip *sl;
- if (slip_devs == NULL)
- return NULL; /* Master array missing ! */
-
for (i = 0; i < slip_maxdev; i++) {
dev = slip_devs[i];
if (dev == NULL)