lkml.org 
[lkml]   [2009]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] usb: avoid PM error messages during resume if a device was disconnected
On Wed, 3 Jun 2009, Rafael J. Wysocki wrote:

> > + /* Avoid PM error messages for devices disconnected while suspended
> > + * as we'll display regular disconnect messages just a bit later.
> > + */
> > + if (status == -ENODEV)
> > + return 0;
> > + return status;
>
> + return status == -ENODEV ? 0 : status;
>
> maybe?
>
> > }
> >
> > #endif /* CONFIG_PM */

Personally, I would do:

if (status == -ENODEV)
status = 0;
return status;

It doesn't make any difference; they are all equally good.

Acked-by: Alan Stern <stern@rowland.harvard.edu>




\
 
 \ /
  Last update: 2009-06-03 03:01    [W:0.057 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site