Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9173a88f authored by Matvejchikov Ilya's avatar Matvejchikov Ilya Committed by David S. Miller
Browse files

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: default avatarMatvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e28634d6
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -726,9 +726,6 @@ static struct slip *sl_alloc(dev_t line)
	struct net_device *dev = NULL;
	struct net_device *dev = NULL;
	struct slip       *sl;
	struct slip       *sl;


	if (slip_devs == NULL)
		return NULL;	/* Master array missing ! */

	for (i = 0; i < slip_maxdev; i++) {
	for (i = 0; i < slip_maxdev; i++) {
		dev = slip_devs[i];
		dev = slip_devs[i];
		if (dev == NULL)
		if (dev == NULL)