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: Valdis.Kletnieks
Date: Tuesday, August 3, 2010 - 4:28 am

On Mon, 02 Aug 2010 21:26:28 PDT, "Justin P. Mattock" said:


What should the code do if device_create_file() manages to fail? Yes, ignoring
the return value is one option, but is it the best one?  'return ret;' might be
another one. Somebody who understands this code and has more caffeine than me
should look this over.

(Nothing personal Justin - it's just my opinion that *anytime* we have a patch
that remove a check for a return code, it needs to justify that ignoring the
return code is appropriate).
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2]drivers/usb/core/sysfs.c Fix variable 'retval' ..., Justin P. Mattock, (Mon Aug 2, 9:26 pm)
Re: [PATCH 1/2]drivers/usb/core/sysfs.c Fix variable 'retv ..., Valdis.Kletnieks, (Tue Aug 3, 4:28 am)