linux/drivers/staging/ft1000
Aya Mahfouz cb53b00de9 staging: ft1000: ft1000-usb: adjust function arguments
Handles the following issues:

Removing extra parentheses around function arguments,
Removing unnecessary pointer to pointer cast.

Issues were detected using the following coccinelle script:

@@
expression e;
type t;
identifier f;
@@

f(...,
-(t *)
e
,...)

@@
expression e;
identifier f;
@@

f(...,
&
-(
e
-)
,...)

@@
expression e;
identifier f;
@@

f(...,
-(
e
-)
,...)

Parentheses removal were left to the script. However, handling pointer
casts were done manually because not all replacements generated by the
script were suitable. In general, the following cases were discarded:

pointer casts in macros,
pointer casts on function arguments in the form of:
    <func>(...,(<type> *)&<expression>,...)

since both cases generated compilation warnings.

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-15 18:41:12 +01:00
..
ft1000-pcmcia staging: ft1000: ft1000-pcmcia: adjust function arguments 2015-03-15 18:41:12 +01:00
ft1000-usb staging: ft1000: ft1000-usb: adjust function arguments 2015-03-15 18:41:12 +01:00
ft1000.h staging: ft1000: remove procfs entries 2014-07-27 11:45:46 -07:00
Kconfig
Makefile
TODO