[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121128.210352.2215853651070474894.davem@davemloft.net>
Date: Wed, 28 Nov 2012 21:03:52 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: steve.glendinning@...well.net
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] smsc75xx: don't call usbnet_resume if usbnet_suspend
fails
From: Steve Glendinning <steve.glendinning@...well.net>
Date: Wed, 28 Nov 2012 17:57:49 +0000
> If usbnet_suspend returns an error we don't want to call
> usbnet_resume to clean up, but instead just return the error.
>
> If usbnet_suspend *does* succeed, and we have a problem further
> on, the desired behaviour is still to call usbnet_resume
> to clean up before returning.
>
> Signed-off-by: Steve Glendinning <steve.glendinning@...well.net>
Steve, can you do me a huge favor?
Get rid of these silly macros from this driver.
Any CPP macro that alters control flow is too evil to live. And we've
worked tirelessly to remove every instance of such a macro from the
core networking interfaces, because they always lead to hard to
diagnose bugs.
THanks.
--
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