Re: [PATCH 1/2]drivers/usb/core/sysfs.c Fix variable 'retval' set but not used

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, August 3, 2010 - 10:22 am

On Tue, Aug 03, 2010 at 01:09:31PM -0400, Alan Stern wrote:

Ah, yeah, now I recall why we didn't do anything with those values :)

It's best to continue on.  Perhaps we should just emit a warning to the
system log if the file fails to be created and move on.  That would
properly handle the return value and keep gcc, and everyone else, happy.

thanks,

greg k-h
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2]drivers/usb/core/sysfs.c Fix variable 'retv ..., Greg KH, (Tue Aug 3, 10:22 am)