Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3926853ybg; Mon, 21 Oct 2019 00:41:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnsYjTFxMp/Mw5NEhslNiYngqo0KiuaYxHK22r9c/EacWLJT1ocAohGaNlQeFO80GYtKHo X-Received: by 2002:a50:c2c2:: with SMTP id u2mr23799078edf.133.1571643666900; Mon, 21 Oct 2019 00:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571643666; cv=none; d=google.com; s=arc-20160816; b=W4Cpx5sZXuNlrwFi7H9DetHR7iVqunjOoagi6PfL40dr8/Vyc5zEJbpKc0Joar78EX WWU815+92+GKXVnj+XHDaUS7tU3Iwy1rKZOLGw1OxqdZ3uMSV7t7hA9zRWiYDcDOlvlI qOoEPLqwA+yWqY0Bh7GEJYbXWsA/SLAAa6eZqyVsJ6GkLb3LCssH+8E5XBDEsYCerjWw G4lDO2httWQEUYeExhCHrGIPJ6TZLFLjHr3s1/fIa9hv9BqjQToQmIQM8r5bAsAW46ie QfhPy5ZliywjyhksHovQ/0UHRhd0jcVuyLe/MddPS6oMrJRBoqrEKC+abFrMZ6j5omU9 N6GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=B/Du1ICsUUehHSk1xjPmYN+xz6mSQsRVJCVET42F+GY=; b=Un6wK2FAIUM/ObRvotfeKAdIHv+IVvriPtjkLfERNskyZ26tqThCjTWZjRL46t9e3t gmE9Oaq6Kqm7lJEUORyBzGg1nsbo9l+AlSkdCRawl7LvEhSSRnUKXJm73kppRQu19M01 1YveJr82hdQNp5HLnASSZybiSjJjvcwnhqKEhRrTC3gUG38aAeFmOTh4wM/41KJJ7pqj jooLW/ev8syL/Hg8FiEuueJ2mQ/Zhw0qxlCIifoD/jR9BxKXuV/dySezcK6AGAgmvimH q78IV/38gmBHyUBu7en/jj3OcpDWVa71WHFLKqHEFZFQkN7YrKRNQqeptZqr3RAWpm5k lJHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 t18si8307723ejr.440.2019.10.21.00.40.42; Mon, 21 Oct 2019 00:41:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727047AbfJUHka (ORCPT + 99 others); Mon, 21 Oct 2019 03:40:30 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:57410 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727297AbfJUHk3 (ORCPT ); Mon, 21 Oct 2019 03:40:29 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DFF893A74AC0FA1125C0; Mon, 21 Oct 2019 15:40:26 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Mon, 21 Oct 2019 15:40:19 +0800 From: Shukun Tan To: , CC: , , Subject: [PATCH 2/4] crypto: hisilicon - Fix using plain integer as NULL pointer Date: Mon, 21 Oct 2019 15:41:01 +0800 Message-ID: <1571643663-29593-3-git-send-email-tanshukun1@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571643663-29593-1-git-send-email-tanshukun1@huawei.com> References: <1571643663-29593-1-git-send-email-tanshukun1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patch fix sparse warning: zip_crypto.c:425:26: warning: Using plain integer as NULL pointer Replaces assignment of 0 to pointer with NULL assignment. Signed-off-by: Shukun Tan Signed-off-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/crypto/hisilicon/zip/zip_crypto.c index 9d31b80..795428c 100644 --- a/drivers/crypto/hisilicon/zip/zip_crypto.c +++ b/drivers/crypto/hisilicon/zip/zip_crypto.c @@ -42,7 +42,7 @@ enum hisi_zip_alg_type { #define TO_HEAD(req_type) \ (((req_type) == HZIP_ALG_TYPE_ZLIB) ? zlib_head : \ - ((req_type) == HZIP_ALG_TYPE_GZIP) ? gzip_head : 0) \ + ((req_type) == HZIP_ALG_TYPE_GZIP) ? gzip_head : NULL) \ struct hisi_zip_req { struct acomp_req *req; -- 2.7.4