Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2735496ybz; Mon, 27 Apr 2020 03:37:11 -0700 (PDT) X-Google-Smtp-Source: APiQypLSARUyVM9Kl3/C1aEL8FpEp4AbhwBQYipcu5/47d6yF8ksd2ndEexgZ6JI/ca4yTRSB877 X-Received: by 2002:aa7:d3d3:: with SMTP id o19mr17711549edr.76.1587983831169; Mon, 27 Apr 2020 03:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587983831; cv=none; d=google.com; s=arc-20160816; b=vJmjoNKPFCPLMOLEE7ha7Gu9cqf7+QSIsU7+CRgCazVkOkC+qZ2WC1OHVcmNRk/9Wh BeYW1i0/uOTejghnCnMgEbddHwd8vdUrf/UxE6z9glqT0JtMa+6U3HgQERavWVKfDOEG NBHzwX5QHETXwqu+AtTww/BY/nAg62t+HaTu8EkSDvEDySrNF4Gfxxerw1W8QMawMp0J pJ3iww7kgmdkVKowrPQD9ur7VxqxmeqJOdvEePDjTmhwu54i/OApVLN+RHMnty3sv5r6 1Wj8iJw5sdMvO7mLIRsVp3kfcSpS37Ia/Es9tohvwfQIo5HQcfw0aTb4y8rtBUO/Ci1l eWCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=9wV8t+KAUUaO16pTgyBed4eZ0237ulm/o+EEA3p/VZ8=; b=wihd2yjqyJP3256jyZ253aQM1jnnvbefGld81tixuw4onobIYBOJwDuNxCowtyu4+Z eHuupVrQmLn1AfTtSwYd4GPH6E7uIH62/UEs6kn0UiHL0t7ARfsdpj0aWDnMJAuYpov2 KhRJvu8khiMtIw2u1c6fX7//Dvu2LBwPUrxafEEvPAMe7ZPmNNKZ/kxeE3IVvlB2e26u lWxX74xYGlD2HMiJf84cC4RcEWTDkc7NUddIDgaqtq9J3ZMCAU/JrdtDazB/eZsf7uQe 59VnAjxpJd0qlWw1lfVgcF89/oiI/Rrx6IeJEIqJl7CXAwWbV5tNkJsvTjn2jKEonYeC AcIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NvfFV3P9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh26si7914012ejb.177.2020.04.27.03.36.47; Mon, 27 Apr 2020 03:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NvfFV3P9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbgD0Kcl (ORCPT + 99 others); Mon, 27 Apr 2020 06:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726604AbgD0Kcl (ORCPT ); Mon, 27 Apr 2020 06:32:41 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22824C0610D5; Mon, 27 Apr 2020 03:32:41 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id x77so8827823pfc.0; Mon, 27 Apr 2020 03:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9wV8t+KAUUaO16pTgyBed4eZ0237ulm/o+EEA3p/VZ8=; b=NvfFV3P9QENxPnI2l9UcXJtPbHzPGkZrbJ8cJrKRP68i56PxFVUdgEPp7inA8uSTla KlT1oN8rs6O+i7rVyOApTHfx8c0kRbFEKzlolrlv/K7vBS6lY51NuUUYwtqRmye7tD+R SCfrgjepue1841vdRLGL8x0BRhL6MBVvlahMTGszldUwIXmaqZnwNv9B2oOPpMeoZJmJ IPtnmNhpD4FGsbw+7FWs5q8fx5onLjWCvho7vfEepvfA2BkINDmxD1qOy4mZ4NvJw/Gl igXuoO2/7aTR8PG0T98L7j3oJt8c8wljW56wbgOd4nn0VUEQfpPJ9934p1ihf4X5pAuM 5zqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9wV8t+KAUUaO16pTgyBed4eZ0237ulm/o+EEA3p/VZ8=; b=UtGDT1gwih7OflapIsoGCEDHQrTORiOXLCHdfO1AQzLekktI6bVzRXI2yCYLMxf/o3 WtWno4hmLK66YNHMqbAGiaqB8xN8L2OOsrd3WV+ZFK93328OwGwS0UqzlHhDkqVP85IH ag7IEKPaVKc6lKJXFODnmUv/hS1/VvQJpyLOG93vnv+XQ3vOsAZxad0NMSHI7J3+SKsU SYRqLDgqbyJZfX6YcykYKD9S6SK3wJYDyCeVyfKQ55mcCUmmC7V5S4svfgfaF3hhD6yL njjw3CQgn03Z4MyMaiiIgucElWrGVf3wI8JDwB3uRQAk+rO/sqiIBfdF1UBaYCqLSg8R 1cQA== X-Gm-Message-State: AGi0PubUWJcEPDtH0XYGBACig+zz20apr6A1BFRGArm2+2rsRrj4Zh/9 P10EdJdvFrDCfUqq/J7QPZg= X-Received: by 2002:a63:794d:: with SMTP id u74mr22587793pgc.15.1587983560703; Mon, 27 Apr 2020 03:32:40 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6004:5f2a:b425:fe6e:9d3f:4b82]) by smtp.gmail.com with ESMTPSA id fy21sm10801438pjb.25.2020.04.27.03.32.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 03:32:39 -0700 (PDT) From: Aishwarya Ramakrishnan To: Madalin Bucur , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: aishwaryarj100@gmail.com Subject: [PATCH] dpaa_eth: Fix comparing pointer to 0 Date: Mon, 27 Apr 2020 16:02:30 +0530 Message-Id: <20200427103230.4776-1-aishwaryarj100@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: ./drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:2110:30-31: WARNING comparing pointer to 0 Avoid pointer type value compared to 0. Signed-off-by: Aishwarya Ramakrishnan --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 2cd1f8efdfa3..c4416a5f8816 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c @@ -2107,7 +2107,7 @@ static int dpaa_a050385_wa(struct net_device *net_dev, struct sk_buff **s) /* Workaround for DPAA_A050385 requires data start to be aligned */ start = PTR_ALIGN(new_skb->data, DPAA_A050385_ALIGN); - if (start - new_skb->data != 0) + if (start - new_skb->data) skb_reserve(new_skb, start - new_skb->data); skb_put(new_skb, skb->len); -- 2.17.1