[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20131118.151756.1326189931009402407.davem@davemloft.net>
Date: Mon, 18 Nov 2013 15:17:56 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: govindarajulu90@...il.com
Cc: gregkh@...uxfoundation.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, schwidefsky@...ibm.com,
linville@...driver.com, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, IvDoorn@...il.com, sbhatewara@...are.com,
samuel@...tiz.org, chas@....nrl.navy.mil, roland@...nel.org,
isdn@...ux-pingi.de, jcliburn@...il.com, benve@...co.com,
ssujith@...co.com, jeffrey.t.kirsher@...el.com,
jesse.brandeburg@...el.com, shahed.shaikh@...gic.com,
joe@...ches.com, apw@...onical.com
Subject: Re: [PATCH net-next 02/13] driver: net: remove unnecessary skb
NULL check before calling dev_kfree_skb_irq
From: Govindarajulu Varadarajan <govindarajulu90@...il.com>
Date: Tue, 19 Nov 2013 00:56:48 +0530 (IST)
> Did you have a chance to look at this? Let me know how you want me to
> fix this.
I said clearly that I don't want this change to be made, because in many
cases the "= NULL" assignment in the driver is desirable to elide when it
isn't necessary because the value is already NULL. Therefore the NULL
check in dev_kfree_skb_irq() is basically coming for free.
Yes there are other cases, but it really doesn't matter enough to justify
your change.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists