android_kernel_motorola_sm6225/drivers/media/dvb
Mauro Carvalho Chehab 58d5eaec9f [media] drxd: Don't use a macro for CHK_ERROR with a break inside
The macro is defined as:
	#define CHK_ERROR(s) if( (status = s)<0 ) break

This sucks, as makes harder to debug if something got wrong and
there are more than one level of loops. Also, violates CodingStyle.

Fixed by this simple perl script:

	while (<>) { $f.=$_; };

	$f=~ s,\n\#define CHK_ERROR[^\n]+\n,\n,;

	$f=~ s=(CHK_ERROR\(.*\,)\n\s+=\1 =g;
	$f=~ s=(CHK_ERROR\(.*\,)\n\s+=\1 =g;
	$f=~ s=(CHK_ERROR\(.*\,)\n\s+=\1 =g;
	$f=~ s=(CHK_ERROR\(.*)\s+(\,)\n\s+=\1\2 =g;
	$f=~ s=(CHK_ERROR\(.*)\s+(\,)\n\s+=\1\2 =g;
	$f=~ s=(CHK_ERROR\(.*)\s+(\,)\n\s+=\1\2 =g;

	$f=~ s,\n(\t+)CHK_ERROR\((.*)\)\;,\n\1status = \2;\n\1if (status < 0)\n\1\tbreak;,g;

	print $f;

Plus a few manual adjustments

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-05-20 07:26:26 -03:00
..
b2c2 [media] use pci_dev->revision 2011-05-20 07:26:16 -03:00
bt8xx [media] use pci_dev->revision 2011-05-20 07:26:16 -03:00
dm1105 [media] Rename all public generic RC functions from ir_ to rc_ 2010-12-29 08:16:50 -02:00
dvb-core Fix common misspellings 2011-03-31 11:26:23 -03:00
dvb-usb [media] DM04/QQBOX Fix issue with firmware release and cold reset 2011-05-20 07:26:14 -03:00
firewire [media] firedtv: drop obsolete backend abstraction 2011-03-21 20:32:21 -03:00
frontends [media] drxd: Don't use a macro for CHK_ERROR with a break inside 2011-05-20 07:26:26 -03:00
mantis [media] mantis: trivial module parameter documentation fix 2011-05-20 07:26:16 -03:00
ngene Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 2011-05-04 14:22:04 -07:00
pluto2 Fix common misspellings 2011-03-31 11:26:23 -03:00
pt1 [media] i2c: Stop using I2C_CLASS_TV_DIGITAL 2010-10-21 07:54:26 -02:00
siano Fix common misspellings 2011-03-31 11:26:23 -03:00
ttpci Fix common misspellings 2011-03-31 11:26:23 -03:00
ttusb-budget [media] TTUSB DVB: ttusb_boot_dsp() needs to release_firmware() or it leaks memory 2011-03-21 20:32:22 -03:00
ttusb-dec Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig [media] firedtv: remove obsolete ieee1394 backend code 2011-03-21 20:32:12 -03:00
Makefile V4L/DVB: ngene: Driver compiles now 2010-02-26 15:10:53 -03:00