[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <482BF744.6060106@cn.fujitsu.com>
Date: Thu, 15 May 2008 16:41:40 +0800
From: Wang Chen <wangchen@...fujitsu.com>
To: Stephen Hemminger <shemminger@...tta.com>
CC: Greg KH <greg@...ah.com>, David Miller <davem@...emloft.net>,
fubar@...ibm.com, netdev@...r.kernel.org,
bonding-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] net: handle errors from device_rename
Stephen Hemminger said the following on 2008-5-15 9:15:
> rollback:
> - device_rename(&dev->dev, dev->name);
> + err = device_rename(&dev->dev, dev->name);
> + if (err) {
> + memcpy(dev->name, oldname, IFNAMSIZ);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
no need, dev->name didn't change in device_rename().
> + return err;
> + }
>
--
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