Skip to content

Commit

Permalink
staging/easycap: fix artificial line breaks
Browse files Browse the repository at this point in the history
fix style issue:
		if (NULL !=
				pdata_urb->purb) {
created by the patch:
	'staging/easycap: don't cast NULL pointer'

After dropping the casting there is no longer 80 columns
limitation

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent 3fc0dae commit e0a691e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions drivers/staging/easycap/easycap_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ if (true == other) {
peasycap_standard = &easycap_standard[0];
while (0xFFFF != peasycap_standard->mask) {
if (true == ntsc) {
if (NTSC_M ==
peasycap_standard->v4l2_standard.index) {
if (NTSC_M == peasycap_standard->v4l2_standard.index) {
peasycap->inputset[input].standard_offset =
peasycap_standard -
&easycap_standard[0];
Expand Down Expand Up @@ -3631,8 +3630,7 @@ for (i = 0; i < pusb_interface->num_altsetting; i++) {
return -EFAULT;
}
pusb_interface_descriptor = &(pusb_host_interface->desc);
if (NULL ==
pusb_interface_descriptor) {
if (NULL == pusb_interface_descriptor) {
SAM("ERROR: pusb_interface_descriptor is NULL\n");
return -EFAULT;
}
Expand Down Expand Up @@ -4650,8 +4648,7 @@ case 0: {
pdata_urb = list_entry(plist_head,
struct data_urb, list_head);
if (NULL != pdata_urb) {
if (NULL !=
pdata_urb->purb) {
if (NULL != pdata_urb->purb) {
usb_kill_urb(pdata_urb->purb);
m++;
}
Expand All @@ -4671,8 +4668,7 @@ case 2: {
pdata_urb = list_entry(plist_head,
struct data_urb, list_head);
if (NULL != pdata_urb) {
if (NULL !=
pdata_urb->purb) {
if (NULL != pdata_urb->purb) {
usb_kill_urb(pdata_urb->purb);
m++;
}
Expand Down

0 comments on commit e0a691e

Please sign in to comment.