From: Ralf Baechle Date: Thu, 24 Nov 2011 23:09:00 +0000 (+0000) Subject: NET: NETROM: Cleanup argument SIOCADDRT ioctl argument checking. X-Git-Tag: v3.3-rc1~182^2~439 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10cae1c8dfbbdee55bdfcb7034f4c2c1197dc0a4;p=pandora-kernel.git NET: NETROM: Cleanup argument SIOCADDRT ioctl argument checking. nr_route.ndigis is unsigned int so the nr_route.ndigis < 0 expression is never true and can be dropped. Doing the nr_ax25_dev_get call later allows the nr_route.ndigis test to bail out without having to dev_put. Signed-off-by: Ralf Baechle Cc: Thomas Osterried Signed-off-by: David S. Miller --- Reading git-diff-tree failed