Commit f69e9529 authored by Alexey Klimov's avatar Alexey Klimov Committed by Mauro Carvalho Chehab

V4L/DVB (10335): gspca - all subdrivers: Fix CodingStyle in sd_mod_init function.

Introduce int ret and check it value after call to usb_register().
Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 766231ab
......@@ -1028,7 +1028,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -927,7 +927,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -454,7 +454,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -373,7 +373,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init mod_m5602_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -420,7 +420,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -2176,7 +2176,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -584,7 +584,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -564,7 +564,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -1096,7 +1096,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -1271,7 +1271,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -1793,7 +1793,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
info("registered");
return 0;
......
......@@ -1092,7 +1092,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -2210,7 +2210,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -862,7 +862,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -771,7 +771,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -1665,7 +1665,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -1196,7 +1196,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -560,7 +560,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
info("registered");
return 0;
......
......@@ -500,7 +500,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -1464,7 +1464,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -1171,7 +1171,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -569,7 +569,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -2459,7 +2459,9 @@ static struct usb_driver sd_driver = {
/* -- module insert / remove -- */
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
......@@ -7599,7 +7599,9 @@ static struct usb_driver sd_driver = {
static int __init sd_mod_init(void)
{
if (usb_register(&sd_driver) < 0)
int ret;
ret = usb_register(&sd_driver);
if (ret < 0)
return -1;
PDEBUG(D_PROBE, "registered");
return 0;
......
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