[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87y5jw982o.fsf@nemi.mork.no>
Date: Wed, 26 Sep 2012 16:23:27 +0200
From: Bjørn Mork <bjorn@...k.no>
To: Steve Glendinning <steve.glendinning@...well.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 5/5] smsc95xx: enable power saving mode during system suspend
Steve Glendinning <steve.glendinning@...well.net> writes:
> +static int smsc95xx_suspend(struct usb_interface *intf, pm_message_t message)
> +{
> + struct usbnet *dev = usb_get_intfdata(intf);
> + int ret;
> + u32 val;
> +
> + BUG_ON(!dev);
That's not very user friendly. Why not just return here?
Bjørn
--
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