lkml.org 
[lkml]   [2017]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 5/9] [media] tm6000: Delete an unnecessary variable initialisation in tm6000_usb_probe()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Thu, 14 Sep 2017 16:13:56 +0200

    The local variable "rc" will be set to an appropriate value a bit later.
    Thus omit the explicit initialisation at the beginning.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/media/usb/tm6000/tm6000-cards.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/media/usb/tm6000/tm6000-cards.c b/drivers/media/usb/tm6000/tm6000-cards.c
    index 77347541904d..72dd6b80394f 100644
    --- a/drivers/media/usb/tm6000/tm6000-cards.c
    +++ b/drivers/media/usb/tm6000/tm6000-cards.c
    @@ -1185,7 +1185,7 @@ static int tm6000_usb_probe(struct usb_interface *interface,
    {
    struct usb_device *usbdev;
    struct tm6000_core *dev;
    - int i, rc = 0;
    + int i, rc;
    int nr = 0;
    char *speed;

    --
    2.14.1
    \
     
     \ /
      Last update: 2017-09-15 09:56    [W:3.446 / U:0.796 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site