[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100307.152805.244203159.davem@davemloft.net>
Date: Sun, 07 Mar 2010 15:28:05 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: error27@...il.com
Cc: urs.thuermann@...kswagen.de, oliver.hartkopp@...kswagen.de,
wg@...ndegger.com, haas@...-wuensche.com, kurt.van.dijck@....be,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [patch] ems_usb: cleanup: remove uneeded check
From: Dan Carpenter <error27@...il.com>
Date: Sat, 6 Mar 2010 14:11:38 +0300
> "skb" is alway non-null here, but even if it were null the check isn't
> needed because dev_kfree_skb() can handle it.
>
> This eliminates a smatch warning about dereferencing a variable before
> checking that it is non-null.
>
> Signed-off-by: Dan Carpenter <error27@...il.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists