[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110421130219.GA19021@electric-eye.fr.zoreil.com>
Date: Thu, 21 Apr 2011 15:02:19 +0200
From: Francois Romieu <romieu@...zoreil.com>
To: Ciprian Docan <docan@...n.rutgers.edu>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
netdev@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
"Rafael, J. Wysocki" <rjw@...k.pl>, Greg KH <gregkh@...e.de>,
nic_swsd@...ltek.com
Subject: Re: Suspend/resume - slow resume
Ciprian Docan <docan@...n.rutgers.edu> :
[...]
> @@ -1789,25 +1800,26 @@ rtl_phy_write_fw(struct rtl8169_private *tp, const struct firmware *fw)
>
> static void rtl_release_firmware(struct rtl8169_private *tp)
> {
> - release_firmware(tp->fw);
> - tp->fw = NULL;
> + if (!IS_ERR_OR_NULL(tp->fw))
> + release_firmware(tp->fw);
Ok.
Nit: the test against NULL is not needed here.
--
Ueimor
--
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