Re: [PATCH 1/2] staging: ft1000: remove unused variables

From: Sudip Mukherjee
Date: Tue Mar 17 2015 - 08:53:01 EST


On Mon, Mar 16, 2015 at 04:33:02PM +0100, Greg KH wrote:
> On Sat, Mar 07, 2015 at 10:56:52AM +0530, Sudip Mukherjee wrote:
> > these variables were assigned some values but they were never being
> > reused again.
>
> But some of them should have been checked, right? Or, if no one cares,
> fix up the function to not return anything, like for all of the
> read_register() calls.
>
> Please do that instead.
but the return value of ft1000_read_register() is being used in
some places like card_send_command() or in ft1000_ioctl().
we can use the return value (if error) in the poll() or ioctl()
instead of returning -1 or -ENOTTY. but in the other places,
its - no one cares.

regards
sudip

>
> thanks,
>
> greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/