Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5319149ybi; Tue, 4 Jun 2019 05:00:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFVfhyr4SmAUR9SSu7mTG1a4GPKYE+PQev4CvKcAAYJD/kpB21uGop1lM3q/u8u7MaY4wP X-Received: by 2002:a62:3287:: with SMTP id y129mr32295135pfy.101.1559649649813; Tue, 04 Jun 2019 05:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559649649; cv=none; d=google.com; s=arc-20160816; b=cHUSjqKiKxJ1bSDpbqJvrEE54UsISfj3lBIvVj5pT/ShQ65phK3aofTzikYXs/nTBf LxqPWRHLoZIQTBdXmnFL1knLYqAgzk+nkz4YeTZM+xi9A+ju+5jdlz2waiOAw0+iIX15 yDb+CAFXkmT9rV9JCOOTTygGBlrb4fC0Ip+kPjUbhP73sjDTvvikVU4wHKtHVM1kH6Oj z0Ge2TezQ+6TNEzC2wBZel/sBL1hNCsoyjdCVG660KcC77Dx35zbY9nadocn6dZIl0xM p/HuNNp33QtLts13MpPxKiITFWOWp1ZfYmFON4bnpzmrhchAkuu7Vuug6OmcfRBXun8g xbwA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=UwSNsZx7Lv75iY33AgG+j5Mz3vI+pH0VUs8x89PZflI=; b=pHWZLJq45bhwWcJgqETjgR/7AKZTLzYReEBKK0U6Prf4Dk7j9VnhZownYdQMuukRc7 awHMD5e7S7nsLvynujREyXtwn+ihNfMc6i1NyZOYiW9eO/u/EpeYQG6M7h8paCntoxXO XMZHIcC17P65BWweVVro0+GDnZ4JeCkqZrC9Wfa1Ge1D93mYo16n2rMsIU8/q/tZR3Jq sZNSA+U2whl4yO2e3R9pF3MUUh2qt4F4YKa3Mhbu7Xnc24nlFy6D3SgqG2/MUYXLX1hZ 6UNeRJrwURvVH02lDM/zX0T3/mnezQRPdnRyRCWDFhLhzw5mX7o9Qj/xjUM090Ce3GeI fnKg== 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si21734286pgg.188.2019.06.04.05.00.28; Tue, 04 Jun 2019 05:00:49 -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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727506AbfFDL7T (ORCPT + 99 others); Tue, 4 Jun 2019 07:59:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53130 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbfFDL7T (ORCPT ); Tue, 4 Jun 2019 07:59:19 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 961DA3001834; Tue, 4 Jun 2019 11:59:10 +0000 (UTC) Received: from carbon (ovpn-200-32.brq.redhat.com [10.40.200.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 33EA42B6FE; Tue, 4 Jun 2019 11:58:58 +0000 (UTC) Date: Tue, 4 Jun 2019 13:58:57 +0200 From: Jesper Dangaard Brouer To: Colin King Cc: Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , netdev@vger.kernel.org, xdp-newbies@vger.kernel.org, bpf@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, brouer@redhat.com Subject: Re: [PATCH][next][V2] bpf: remove redundant assignment to err Message-ID: <20190604135857.3f0e6cdc@carbon> In-Reply-To: <20190604082146.2049-1-colin.king@canonical.com> References: <20190604082146.2049-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Tue, 04 Jun 2019 11:59:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jun 2019 09:21:46 +0100 Colin King wrote: > From: Colin Ian King > > The variable err is assigned with the value -EINVAL that is never > read and it is re-assigned a new value later on. The assignment is > redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > > --- > > V2: reorder variables as recommended by Jakub Kicinski to keep in > the networking code style. Thank you for following the networking coding style. Acked-by: Jesper Dangaard Brouer -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer