Received: by 10.192.245.15 with SMTP id i15csp1208924imn; Sun, 11 Mar 2018 08:26:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELuncGgjitJqnLMeBILf7MZdNxaATabyXnrqLABbdCW5UMNke6N0Zfkbo2QoKjX9eLl2ImKN X-Received: by 2002:a17:902:20e5:: with SMTP id v34-v6mr5309957plg.66.1520781974553; Sun, 11 Mar 2018 08:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520781974; cv=none; d=google.com; s=arc-20160816; b=IIEZaJxi//0WNriUr55TG5t6+sfHDI8C73NMSqKwvsxo9HtjiM1+dcyqQk0n5+sEAp EeqKmnYp0cHFUnGXNSF7qsvcCdPVibxyFBUaNRegSTcGTB9MFOgTuj40FrU8qjGDJ1FI EIwmoj3A8ON5XPEjRUKBxFz2aZBWxXgyQMSpL6JsOSg/Uq8XwdwpN3eluI/OYzIbSwWX ns96PbjTfokkIR7LKynJO3k+Ur5kJhaS4+QP2p9L+TbaeddWWCFY842BQM6+kBgEtt0f zf5Cft98pSYOmWmYYcKSMdc+CCnbFQNLTbUBC8PMEh4qcjjNLRkj5la+vVQoVbmBO0Ba +WIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=DWbuH4Vp6wrmGyptc9KfpGuC8u/jC8mDLNC1S1LqB2k=; b=eIDsqMNolvE2b3vpeGgKg7XfDpEg93dJVZuim9auO2SAm6F4rilzgT6ujEwp5O+VnJ LeWcP9NSqlcwf71vegwazJS8h7njxCi2omvOsrw50TvkcN2LGOC7hHz1yCYRR/z2WHqe l0++dtthzWJF9aCbBqC74AwwqkaewUEkZboYsesshhooWXMbp3TbDYAmsROGufdDC8g8 iue5Z2Mmh08aSis5kReFtr8xkdGGyj21i2zxNv49ccHTgE9GyjFS9SFnSk/MrrNUo5rI nKMALOi70ngUlCN3szSmQj+FvbBNaNFnq2oi9AJ8aF+Xfl0F2ZsNRYW+Z52BSKHqrlQh VITA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d90-v6si4461986pld.40.2018.03.11.08.26.00; Sun, 11 Mar 2018 08:26:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932270AbeCKPZN (ORCPT + 99 others); Sun, 11 Mar 2018 11:25:13 -0400 Received: from mout.web.de ([217.72.192.78]:40837 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932163AbeCKPZL (ORCPT ); Sun, 11 Mar 2018 11:25:11 -0400 Received: from [192.168.1.2] ([77.182.27.43]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LuLxD-1eTvcS3o51-011j7T; Sun, 11 Mar 2018 16:25:00 +0100 Subject: [PATCH 9/9] um/drivers/vector_user: Delete an unnecessary variable initialisation in user_init_tap_fds() From: SF Markus Elfring To: user-mode-linux-devel@lists.sourceforge.net, Anton Ivanov , Jeff Dike , Richard Weinberger Cc: user-mode-linux-user@lists.sourceforge.net, kernel-janitors@vger.kernel.org, LKML References: Message-ID: Date: Sun, 11 Mar 2018 16:24:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:ZDWiHS4/3QJtbrun5LgxnZrVjOIF9pIJwhs2160Qh/guL+DMnyF JKJbNPXlrNC0Fh8maf43i5XqynV5h6zn8JWG6znnAucpOp05aoxFLNyKT/STMPkhD+fPMpr 9u56FHUHEEslyr0dL+2w2Z1ZpTRjzlgavPkE4YKhF+zOC7+lUu9rH7hq+E+tmuhdDtke1p6 znsvQuCgJXFhROjT8wsTQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:v6u0G4dyXWs=:V5TqsqMcwMg1GILkUdjDRq 063X1Ta8MgNvOYqK2Z7vV1FaMtOgYw//HQiMLhjU9ZnbCSM65e1Gib0VG2Xkvsb+coaD/7SBc J+DVcCZf30KO64DiDJ5YKf/p/v0MEuDURVfezwkOexM0qvAVkWJ2KGG7KeRm6FuXHDZXznVUd Ngvi/rJEfgX8ectS3/hmx/qNVXxWCGpLbYpUphAlCmqbnZpW5Dxv0rEQxTk9FTMy3a6jgVbRV 0jVnhFg0rQU2smQ6023mTmQwwyEPxLxSRGEF4tRimqPaav/PP0qMl8oZ9g/QeDFuotYHoJndo IZd0h+htpZ+/SYVSJUN/599MZSgVTUgbKjQf7GUGBpneYF4QsiE3w1DDnsMb5nlQtXun4fp4w DKDRtmVc0dvGEOuDowsysiJlRkWkFT14XjmoOZEinzm/DJ8qwwy77YPPqEYpQt0tkqoIzqDZZ dYTJtZ9XBwopqzxjAoCgDVvi2y5/Vk8NWsaE1gYm9qFFyMDaE6mhxeufGLfKs9Gy/KiKRkFRU 3tjVvY0yD/RqZNNCLf6Wh2lzUJGgxcy97ancN2JlOUO3oMOjH29t87JbMcHgzge+iKlQGYHIi MRpM1zYLdF3tPBgZs3PyZxVuIsDL6ym6Xvn/38zv+6/fCuFpLx9GPF0nnjkVHuBtDv4EaIJQI L58QaDy2Me6YBoJU989FJOBPtAAh9O48yOyb9SCc6sOL138frh6nuq5v0gQpUZJKsq1Fj6tTu YOh59pylFMFWtZlPtlMh9WKncG9Gsl/J2HHaAVZ5PS/QMmkX1Ich5rj9x7XvldabH58Bycv2F mdfeXMA3zY04TjaVNL1gtgXd6FsIpqx8xq3aFABzWW1iTRJ5Pc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sun, 11 Mar 2018 15:50:29 +0100 The local variable "fd" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- arch/um/drivers/vector_user.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/um/drivers/vector_user.c b/arch/um/drivers/vector_user.c index bd625034a0f0..3bd510eded58 100644 --- a/arch/um/drivers/vector_user.c +++ b/arch/um/drivers/vector_user.c @@ -119,9 +119,8 @@ struct arglist *uml_parse_vector_ifspec(char *arg) static struct vector_fds *user_init_tap_fds(struct arglist *ifspec) { struct ifreq ifr; - int fd = -1; struct sockaddr_ll sock; - int err = -ENOMEM, offload; + int err = -ENOMEM, fd, offload; char *iface; struct vector_fds *result; -- 2.16.2