From: Julia Lawall Date: Thu, 2 Jan 2014 16:28:49 +0000 (+0100) Subject: net: tulip: delete useless tests on netdev_priv X-Git-Tag: v3.14-rc1~94^2~310 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d4dda781fc1e9c929a1f699119b91eddbcf475c;p=pandora-kernel.git net: tulip: delete useless tests on netdev_priv Netdev_priv performs an addition, not a pointer dereference, so it seems quite unlikely that its result would ever be NULL. A semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ statement S; @@ - if (!netdev_priv(...)) S // Signed-off-by: Julia Lawall Acked-by: Grant Grundler Signed-off-by: David S. Miller --- Reading git-diff-tree failed