Commit Graph
24 Commits
Author SHA1 Message Date
Greg Dietsche d0bc1fb467 coccicheck: add M= option to control which dir is processed
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]>
2012-01-14 22:25:40 +01:00
Greg Dietsche a76011e2cb iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta
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]>
2011-09-30 15:57:04 -04:00
Greg Dietsche 2fa8b6a0e4 iwlwifi: iwl-agn-rs.c: remove old comment
this comment refers to some code that was removed.

Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Wey-Yi Guy <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
2011-08-30 15:38:53 -04:00
Greg Dietsche d3690f8b71 m68k/math-emu: Remove unnecessary code
Remove unnecessary code that matches this coccinelle pattern

	if (...)
		return ret;
	return ret;

Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
2011-07-30 21:21:40 +02:00
Greg Dietsche dbfe898777 frv: remove unnecessary code
remove unnecessary code that matches this coccinelle pattern

	if (...)
		return ret;
	return ret;

Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2011-07-29 23:41:09 -07:00
Greg Dietsche 3735edf9fd [media] dvb: remove unnecessary code
remove unnecessary code that matches this coccinelle pattern
	if (...)
		return ret;
	return ret;

Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2011-07-27 17:53:09 -03:00
Greg Dietsche 47db477e46 ata: remove unnecessary code
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: Jeff Garzik <[email protected]>
2011-07-23 18:07:27 -04:00
Greg Dietsche a6c23905ff x86, smpboot: Mark the names[] array in __inquire_remote_apic() as const
This array is read-only. Make it explicit by marking as const.

Signed-off-by: Greg Dietsche <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
2011-07-21 10:04:51 +02:00
Greg Dietsche 3e878b8d54 net: rds: fix const array syntax
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]>
2011-07-01 16:16:19 -07:00
Greg Dietsche b756828609 gitignore: ignore debian build directory
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]>
2011-07-01 15:21:24 +02:00
Greg Dietsche c5274ab097 staging: remove unnecessary code
Compile tested.
remove unnecessary code that matches this coccinelle pattern
	if (...)
		return ret;
	return ret;

Signed-off-by: Greg Dietsche <[email protected]>
Acked-by: Franky Lin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-06-28 13:13:42 -07:00
Greg Dietsche c4dc4d108a e1000: remove unnecessary code
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]>
2011-06-17 00:03:04 -04:00
Greg Dietsche 0a3f084179 net: icplus: remove unnecessary code
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]>
2011-06-17 00:03:04 -04:00
Greg Dietsche 96bf8bd1c9 savage: remove unnecessary if statement
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]>
2011-06-14 09:29:12 +10:00
Greg Dietsche 4858682661 iwlwifi: remove unecessary if statement
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]>
2011-06-07 14:44:02 -04:00
Greg Dietsche bca6b39979 ASoC: wm8940: remove unnecessary if statements
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]>
2011-06-07 09:47:40 +01:00
Greg Dietsche 324dd96d2b qlge: remove unecessary if statement
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]>
2011-06-06 22:53:13 -07:00
Greg Dietsche 0c34861e7c iwlegacy: add missing null check
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]>
2011-06-03 15:16:35 -04:00
Greg Dietsche 5c30c76ee6 iwlegacy: propagate error return value
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]>
2011-06-03 15:16:34 -04:00
Greg Dietsche 8e638188b2 iwlegacy: return -EINVAL instead of -1
Cleanup the code to return -EINVAL instead of -1
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
2011-06-03 15:16:34 -04:00
Greg Dietsche 04975f3fc3 iwlegacy: remove unecessary if statement
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]>
2011-06-03 15:16:33 -04:00
Greg Dietsche e5a042ea30 iwlegacy: remove unreachable code
return; at the end of the function is unecessary.

Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
2011-06-03 15:16:32 -04:00
Greg Dietsche 304b0b572c usb: fix warning in usbtest module v2
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]>
2011-05-10 14:14:59 -07:00
Greg Dietsche d713680f2a staging: lirc: fixed coding style
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]>
2011-05-03 12:09:43 -07:00