From: Matvejchikov Ilya Date: Tue, 12 Jul 2011 21:46:57 +0000 (+0000) Subject: slip: remove redundant check slip_devs for NULL X-Git-Tag: v3.1-rc1~316^2~166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9173a88f46bf53e2fa85337563b39e13c43c7f2e;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/slip.c b/drivers/net/slip.c index d724d47..6f97c59 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)