]> git.baikalelectronics.ru Git - kernel.git/commit
slip: remove redundant check slip_devs for NULL
authorMatvejchikov Ilya <matvejchikov@gmail.com>
Tue, 12 Jul 2011 21:46:57 +0000 (21:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2011 09:31:39 +0000 (02:31 -0700)
commit9c0de24bff9429c3469d8db22942faa7f694d6e6
tree31d9240e04a9313fc7ca151a56e541c866d0daf1
parent3a1dd729068a3f70f451aeea8841a004c5ded624
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>
drivers/net/slip.c