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: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Alexey Klimov 2009-01-01 13:02:07 -03:00 committed by Mauro Carvalho Chehab
parent 766231ab85
commit f69e9529ed
24 changed files with 72 additions and 24 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;