Thread (3 messages) flat view 3 messages, 3 authors, 2007-08-14

Re: [PATCH] net/tulip/xircom_cb.c: remove superfulous priv assignment

From: Jeff Garzik <hidden>
Date: 2007-08-14 05:06:30
Also in: lkml

Mariusz Kozlowski wrote:
Hello,

	Unpatched version does sth like this:

dev = alloc_etherdev(...
private = netdev_priv(dev);
...
dev->priv = private;

which doesn't make much sense (does it?) because this is done in
alloc_netdev() already.

struct net_device *alloc_netdev(...
{
...
	if (sizeof_priv)
		dev->priv = netdev_priv(dev);

This patch removes superfluous code.

Signed-off-by: Mariusz Kozlowski <redacted>
applied

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help