Re: [PATCH 1/2] usb_gigaset: suspend support [v2]
Andrew Morton <[email protected]>
| Newsgroups | gmane.linux.usb.devel,gmane.linux.kernel,gmane.linux.isdn.i4l.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 29 Oct 2007 22:41:30 +0100 (CET) Tilman Schmidt <[email protected]> wrote: > From: Tilman Schmidt <[email protected]> > > Add basic suspend/resume support to the usb_gigaset driver. > (Corrected version.) > You're not a big fan of checkpatch, I see. > +static int gigaset_suspend(struct usb_interface *intf, pm_message_t message) > +{ > + struct cardstate *cs; > + struct usb_cardstate *ucs; > + > + if ((cs = usb_get_intfdata(intf)) == NULL || > + (ucs = cs->hw.usb) == NULL) { > + err("%s: no cardstate", __func__); > + return -EFAULT; > + } Is the above reeeeeely needed? I bet it never happens. > +static int gigaset_resume(struct usb_interface *intf) > +{ > + struct cardstate *cs; > + struct usb_cardstate *ucs; > + int rc; > + > + if ((cs = usb_get_intfdata(intf)) == NULL || > + (ucs = cs->hw.usb) == NULL) { > + err("%s: no cardstate", __func__); > + return -EFAULT; > + } ditto. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel