Re: [PATCH 10/28] Staging: comedi: kcomedilib: kcomedilib_main.c: Edit file so that checkpatch.pl has 0 errors and warnings

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

On Tue, Oct 05, 2010 at 09:00:25PM -0400, Tracey Dent wrote:

No, this doesn't work.  strict_strtoul() only returns zero and -EINVAL.
It doesn't return the number.

GCC even warns about this change:
drivers/staging/comedi/kcomedilib/kcomedilib_main.c: In function ‘comedi_open’:
drivers/staging/comedi/kcomedilib/kcomedilib_main.c:53: warning:
passing argument 2 of ‘strict_strtoul’ makes integer from pointer without a cast

Please at least compile these before sending.  :(


regards,
dan carpenter
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 10/28] Staging: comedi: kcomedilib: kcomedilib_ ..., Dan Carpenter, (Tue Oct 5, 9:44 pm)