Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4786265ybi; Tue, 28 May 2019 02:28:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIIAZJBECCVpmCXeS4BOe6jszjdL/iQQvSpdTKwtRudQk1ujuYl/XSA2ywX6yKUNSrmF+9 X-Received: by 2002:a17:902:b704:: with SMTP id d4mr63532274pls.217.1559035687961; Tue, 28 May 2019 02:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559035687; cv=none; d=google.com; s=arc-20160816; b=qhuulAxu3kLMBr5Q/XrgNX2qUhMeNCgUxOptX6YmYMI0CCoV02LyfkFy41QCeZK5lB cZ2dtI6rf83jhg1qE/0q6TK/W6T/TJ+yeurGJG1ulFZvqjulBcLVQQU4QaXH4MLtkaCe tigkaC35fU0bhcdQcJ4KZcP+S5IzAa1gvZGGfQTvb9pptPQCGzHahJFtxuaTi1u4Godb oWGMnf2KNYIF1E/pAYVlgIIwSajKJc81dgHCFEXNmSpgEpBFi78G9pobmfrQB6JUZ4lQ 50TqLwhs2POmQ6Z9nGSrZKDsp5S1XO4gWGectJzCy6+/+OBIvPlinvZ/BfpgGpDHvy+K gPRA== 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:from:references:to:subject; bh=N4MYdwA+E6tIaYmPjsdnUx3xeRdEsEO1ypA1veLLU+s=; b=UyKASEDp2tqB6cvnN5dsS5EwRo4UE7s7gwYvlzg1O8vxg3IzovFPgjeOhEheOMaKUX RPAhV+mTxYsnh0q8UQt/z+upeXJXPqGH5cQLr+xWstLzrXgAIzqjRSMw58fMo4yIhFCZ 5MuNmghVgZmYSL1Y2HzQxXlVkM7+Q/LoRV8x2cTsM47SAKdm51wRCRZ9Fj4wWnr9+q8e NONFt6mRQw15RUfHA+4svPTYzAjmSW9M0nOtZ3ufHAB3BYoPhyZNBgQdakZaour65cE2 04/ZGp2F7yltVlEpHhZmW3NNLBygm9sNInyegcFovrhREQ9TEUSubPnXoLPHy+tVvmbR BNuQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si2465727pjq.99.2019.05.28.02.27.51; Tue, 28 May 2019 02:28:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbfE1J0m (ORCPT + 99 others); Tue, 28 May 2019 05:26:42 -0400 Received: from www62.your-server.de ([213.133.104.62]:38192 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbfE1J0l (ORCPT ); Tue, 28 May 2019 05:26:41 -0400 Received: from [78.46.172.3] (helo=sslproxy06.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hVYNO-0007wR-MJ; Tue, 28 May 2019 11:26:34 +0200 Received: from [178.197.249.12] (helo=linux.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hVYNO-000NMe-EI; Tue, 28 May 2019 11:26:34 +0200 Subject: Re: [PATCH] libbpf: fix warning PTR_ERR_OR_ZERO can be used To: Hariprasad Kelam , Alexei Starovoitov , Martin KaFai Lau , Song Liu , Yonghong Song , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, xdp-newbies@vger.kernel.org References: <20190525090257.GA12104@hari-Inspiron-1545> From: Daniel Borkmann Message-ID: Date: Tue, 28 May 2019 11:26:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190525090257.GA12104@hari-Inspiron-1545> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.3/25463/Tue May 28 09:57:22 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/25/2019 11:02 AM, Hariprasad Kelam wrote: > fix below warning reported by coccicheck > > /tools/lib/bpf/libbpf.c:3461:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > Signed-off-by: Hariprasad Kelam Applied, thanks!