lkml.org 
[lkml]   [2016]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 1/2] 390/qeth: Delete an unnecessary variable initialisation in qeth_core_set_online()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sun, 3 Jan 2016 10:48:05 +0100

    Omit explicit initialisation at the beginning for one local variable
    that is redefined before its first use.

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

    diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
    index 7871537..54fde2e 100644
    --- a/drivers/s390/net/qeth_core_main.c
    +++ b/drivers/s390/net/qeth_core_main.c
    @@ -5637,7 +5637,7 @@ static void qeth_core_remove_device(struct ccwgroup_device *gdev)
    static int qeth_core_set_online(struct ccwgroup_device *gdev)
    {
    struct qeth_card *card = dev_get_drvdata(&gdev->dev);
    - int rc = 0;
    + int rc;
    int def_discipline;

    if (!card->discipline) {
    --
    2.6.3


    \
     
     \ /
      Last update: 2016-01-03 11:21    [W:4.060 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site