lkml.org 
[lkml]   [2016]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 5/7] USB-iowarrior: Delete unnecessary initialisations in iowarrior_write()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sun, 21 Aug 2016 15:17:22 +0200

    Two local variables 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/usb/misc/iowarrior.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c
    index e3564d8..ffbbb74 100644
    --- a/drivers/usb/misc/iowarrior.c
    +++ b/drivers/usb/misc/iowarrior.c
    @@ -338,8 +338,8 @@ static ssize_t iowarrior_write(struct file *file,
    size_t count, loff_t *ppos)
    {
    struct iowarrior *dev;
    - int retval = 0;
    - char *buf = NULL; /* for IOW24 and IOW56 we need a buffer */
    + int retval;
    + char *buf; /* for IOW24 and IOW56 we need a buffer */
    struct urb *int_out_urb = NULL;

    dev = file->private_data;
    --
    2.9.3
    \
     
     \ /
      Last update: 2016-09-17 09:57    [W:4.021 / U:0.196 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site