mirror of https://gitee.com/openkylin/linux.git
staging/easycap: easycap_usb_probe: more indentation cleanups
Cc: Mike Thomas <rmthomas@sciolus.org> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b4a5916e6b
commit
dfcce7bf09
|
@ -4377,10 +4377,10 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
|
|||
err("easycap_alsa_probe() returned %i\n", rc);
|
||||
return -ENODEV;
|
||||
} else {
|
||||
JOM(8, "kref_get() with %i=peasycap->kref.refcount.counter\n",
|
||||
(int)peasycap->kref.refcount.counter);
|
||||
JOM(8, "kref_get() with %i=kref.refcount.counter\n",
|
||||
peasycap->kref.refcount.counter);
|
||||
kref_get(&peasycap->kref);
|
||||
(peasycap->registered_audio)++;
|
||||
peasycap->registered_audio++;
|
||||
}
|
||||
|
||||
#else /* CONFIG_EASYCAP_OSS */
|
||||
|
@ -4390,16 +4390,11 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
|
|||
usb_set_intfdata(pusb_interface, NULL);
|
||||
return -ENODEV;
|
||||
} else {
|
||||
JOM(8, "kref_get() with %i=peasycap->kref.refcount.counter\n",
|
||||
(int)peasycap->kref.refcount.counter);
|
||||
JOM(8, "kref_get() with %i=kref.refcount.counter\n",
|
||||
peasycap->kref.refcount.counter);
|
||||
kref_get(&peasycap->kref);
|
||||
(peasycap->registered_audio)++;
|
||||
peasycap->registered_audio++;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/*
|
||||
* LET THE USER KNOW WHAT NODE THE AUDIO DEVICE IS ATTACHED TO.
|
||||
*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
SAM("easyoss attached to minor #%d\n", pusb_interface->minor);
|
||||
#endif /* CONFIG_EASYCAP_OSS */
|
||||
|
||||
|
@ -4410,11 +4405,10 @@ static int easycap_usb_probe(struct usb_interface *pusb_interface,
|
|||
* INTERFACES OTHER THAN 0, 1 AND 2 ARE UNEXPECTED
|
||||
*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
default: {
|
||||
default:
|
||||
JOM(4, "ERROR: unexpected interface %i\n", bInterfaceNumber);
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
SAM("ends successfully for interface %i\n", bInterfaceNumber);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue