]> git.baikalelectronics.ru Git - kernel.git/commit
slip: fix MTU comparation operation when reallocating buffers
authorMatvejchikov Ilya <matvejchikov@gmail.com>
Tue, 12 Jul 2011 21:46:17 +0000 (21:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2011 09:31:39 +0000 (02:31 -0700)
commit3a1dd729068a3f70f451aeea8841a004c5ded624
treebc42b32c19e27e498f404f09e89572591ee3207c
parent8c5cb23118610d5ec68755ede9a9b9fab06ed6a2
slip: fix MTU comparation operation when reallocating buffers

In sl_realloc_bufs() there is no reason to check if the requested MTU greater
than or equal to the current MTU value as this function called only
when requested
MTU not equals to the current value. So, the ">=" operation can be
safely replaced
with the ">".

Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip.c