Examples:
make coccicheck M=drivers/net/wireless/
make coccicheck SUBDIRS=drivers/net/wireless/
Version 2:
fix patch file names when using M=
tell coccinelle where the include files are
Version 3:
Add second include option to support out of tree development
Fix error message
Signed-off-by: Greg Dietsche <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
both sta and lq_sta are guaranteed to be not null in the
calling function so we don't need to check them here.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Wey-Yi Guy <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Correct the syntax so that both array and pointer are const.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Have git ignore the Debian directory created when running:
make deb-pkg
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Compile tested.
remove unnecessary code that matches this coccinelle pattern
if (...)
return ret;
return ret;
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Compile tested.
remove unnecessary code that matches this coccinelle pattern
if (...)
return ret;
return ret;
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
the code always returns ret regardless, so if(ret) check is unnecessary.
v2: fixed up the spelling.
Signed-off-by: Greg Dietsche <[email protected]>
Reviewed-by: Nicolas Kaiser <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
the code always returns ret regardless, so if(ret) check is unecessary.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
removing unnecessary if(ret) checks
This updated patch corrects a minor spelling problem in the commit message
and resolves two other (similar) issues found in wm8940.c by Jonathan Cameron.
Signed-off-by: Greg Dietsche <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
the code always returns 'status' regardless, so if(status) check is unecessary.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
lq_sta has other null checks in this function.
assuming they are correct, this additional null check
should be added too.
Incorporating suggestion from Gustavo Padovan.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
propogate the return value from iwl4965_get_tx_atten_grp instead
of implicitly returning -EINVAL in the error case.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
the code always returns ret regardless, so if(ret) check is unecessary.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
On amd64 unsigned is not as wide as pointer and this causes a compiler
warning. Switching to unsigned long corrects the problem.
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
fixed a few minor coding style issues reported by checkpatch.pl
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>