Commit ad30d7af authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman

staging/easycap: easycap_probe: take out duplicated code from ifdef - else

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 11ff12fe
...@@ -4183,11 +4183,6 @@ static int easycap_usb_probe(struct usb_interface *intf, ...@@ -4183,11 +4183,6 @@ static int easycap_usb_probe(struct usb_interface *intf,
if (rc) { if (rc) {
err("easycap_alsa_probe() rc = %i\n", rc); err("easycap_alsa_probe() rc = %i\n", rc);
return -ENODEV; return -ENODEV;
} else {
JOM(8, "kref_get() with %i=kref.refcount.counter\n",
peasycap->kref.refcount.counter);
kref_get(&peasycap->kref);
peasycap->registered_audio++;
} }
#else /* CONFIG_EASYCAP_OSS */ #else /* CONFIG_EASYCAP_OSS */
...@@ -4196,15 +4191,14 @@ static int easycap_usb_probe(struct usb_interface *intf, ...@@ -4196,15 +4191,14 @@ static int easycap_usb_probe(struct usb_interface *intf,
SAY("ERROR: usb_register_dev() failed\n"); SAY("ERROR: usb_register_dev() failed\n");
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
return -ENODEV; return -ENODEV;
} else {
JOM(8, "kref_get() with %i=kref.refcount.counter\n",
peasycap->kref.refcount.counter);
kref_get(&peasycap->kref);
peasycap->registered_audio++;
} }
SAM("easyoss attached to minor #%d\n", intf->minor); SAM("easyoss attached to minor #%d\n", intf->minor);
#endif /* CONFIG_EASYCAP_OSS */ #endif /* CONFIG_EASYCAP_OSS */
JOM(8, "kref_get() with %i=kref.refcount.counter\n",
peasycap->kref.refcount.counter);
kref_get(&peasycap->kref);
peasycap->registered_audio++;
break; break;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment