Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2360099pja; Wed, 10 Apr 2019 18:47:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJhalT9m3d3ov265/1El9ZIzGHXqS8K8VzO/Dku7diNE/tF2QL8MGFXDMTg/0tr+tLis/4 X-Received: by 2002:a17:902:9881:: with SMTP id s1mr45219975plp.99.1554947239606; Wed, 10 Apr 2019 18:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554947239; cv=none; d=google.com; s=arc-20160816; b=jwb2aoiInuSmBeIVDcsfzFp5jTHZG0ouBwRH5DCs1TavGEYRuiChqbwvFixjZ6DD3e TbyFsOvIFLBucj6UrKZEwDTNt+uUjhuMV8WcI7VRzBUyr/r2JTAOqBy6tr3wtLIShK+q qB5E/XQ1Ceuwpcouc73AeHgHUWEql9DRFMy6a30QWl8kPCP+NUz2FCToGpPTiEX8yDcz w6sF8fE/RBzBEQV4ZCjf+xVW1RixjWo8LUd/9gF1DAuzIg+1zmIbfmxLumJEHYHlS4vS b+yDEI4HwLWjkeLElBIAVoERMVWpTE0TPAu9aIPGHkzHU2wbVrG6MZhGP2OsdfNsOFt3 1cww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=uawXDjYc8wEaxv+oFjjSwt2sY14JsuhBTcwRJTgBnzM=; b=Px11axEUW+YsPOOGpxM4bEJOabJnLTQq5ENl7hk+fpTdoGhVmUAPXdoOlwhL+FLqBG D0WQRwf+MA4vrgsQBVvgjv+ui44+N+Nl0bdgCI5tghKYYeTnDMdQKN2VerBxMw8Rlr8T +tNmFq3gIX+DlvYj0peOScwuAZ/goUkkNlO1OUqk+MGEERwFcdwiqFzdHzVeoCsG9ms9 T7ghu5vyGZXJ3eVFBjrbapFMR4d5Fva4ombk2xXTEEWDeuHw0HZH82mfsVvBz9J4VBTD +Xwqg5/ADqJiN/IljMBt20B6PPvD7PhYrfWDU88ETFzJjw5S5zkUsqmqPP0tQ4YyzRJv InlA== 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 a8si12052189pla.362.2019.04.10.18.47.03; Wed, 10 Apr 2019 18:47:19 -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 S1726812AbfDKBo3 (ORCPT + 99 others); Wed, 10 Apr 2019 21:44:29 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6149 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725981AbfDKBo3 (ORCPT ); Wed, 10 Apr 2019 21:44:29 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 117C44E423450D38A795; Thu, 11 Apr 2019 09:44:26 +0800 (CST) Received: from huawei.com (10.67.189.167) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.408.0; Thu, 11 Apr 2019 09:44:19 +0800 From: xiaojiangfeng To: , , , , CC: , Subject: [PATCH] of: fix expression using sizeof(void) Date: Thu, 11 Apr 2019 09:47:35 +0800 Message-ID: <1554947255-80031-1-git-send-email-xiaojiangfeng@huawei.com> X-Mailer: git-send-email 1.8.5.6 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.189.167] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org problem detected by sparse: drivers/of/fdt.c:1094:34: warning: expression using sizeof(void) Signed-off-by: xiaojiangfeng --- drivers/of/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 4734223..75c6c55 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -1091,7 +1091,7 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname, /* Retrieve command line */ p = of_get_flat_dt_prop(node, "bootargs", &l); if (p != NULL && l > 0) - strlcpy(data, p, min((int)l, COMMAND_LINE_SIZE)); + strlcpy(data, p, COMMAND_LINE_SIZE); /* * CONFIG_CMDLINE is meant to be a default in case nothing else -- 1.8.5.6