Re: [PATCH v2] media: video: pwc: Use kernel's simple_strtol()

From: Pekka Enberg
Date: Wed Sep 16 2009 - 08:44:02 EST


On Wed, Sep 16, 2009 at 3:26 PM, Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> @@ -2078,13 +2066,13 @@ static int __init usb_pwc_init(void)
>                                }
>                                else {
>                                        /* No type or serial number specified, just a number. */
> -                                       device_hint[i].device_node = pwc_atoi(s);
> +                                       device_hint[i].device_node = (int)simple_strtol(s, NULL, 10);

What's with all the casting to int?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/