Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4675125yba; Wed, 10 Apr 2019 02:29:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwicBuqBY+js8Z1AclbPxznNuD0jR8hnchiXW22ZLstL3Bf6CiW045B4oKQdp3RA3NYwsY X-Received: by 2002:a63:550d:: with SMTP id j13mr39627865pgb.18.1554888587103; Wed, 10 Apr 2019 02:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554888587; cv=none; d=google.com; s=arc-20160816; b=zYyxmEUhHYaHSYCG6yXU1vXtCGTqXC/0hO427lc+yrXt8y+ZAmxc22a/GowU+WaAXg r+FrFbJ74h6nDwjDq9/ffwSD+7EDaJvD2XvE7I2vYcuh3VCIGUcVHsLf4iBEElNzdMa7 UJxBlWlsy2yU4XRmtZ0rk6GPCxwU9Ll2jfVTxGMUwE0qgNT1sXWju1Izpm89l+iWspoE THNv0iXoQAuzl/EJ/j7g7D3rQIwsGXuQrplc8mbLqJ8Vtgc3KL/rjNaJUU8a3KGcupsl pS5p4vvduweHD9CKcObX4AMDj/kruMZYsCuUigVmWBPxixqFptDCxAi7jVOLzXpzWTB8 wb7g== 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=yF01+xuJDNfAAe/XZYHmvLrZhxaPtozQEmqeYboYNtQ=; b=xVwydY58/2bZHQuJ7w6tclnc6VJNvLfflpp9R1VHmmv2oZy2AosCn+KI2+F7Ej0gw9 jAklS3Bjat86Qfw8gzVg8nRKzq+qY0KNO9udSJ+ZUGQDxsxwjfEY0pOXWTCv61yPZP7N S3FzBHAsUm7B8JRVnbsHaB9ROJWPksKlooINqbIP2ZWr7+evU7lzGwAgcloPnETii0gh y/yNKTGp0UgpG6Gzh864rmhxfB+MlJhu/yCmThw57u/9vSmZK/QGuwlkZggcOKBfxRCI UP24LFNixMdA0QB4Y73qsZTnIdXLVeg/LC6bY5g1nEgFCd/bw7CMT+HeFLBvhL1hitMl HwFg== 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 j4si13522987pfr.272.2019.04.10.02.29.31; Wed, 10 Apr 2019 02:29:47 -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 S1729535AbfDJI0m (ORCPT + 99 others); Wed, 10 Apr 2019 04:26:42 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:37146 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729424AbfDJI0m (ORCPT ); Wed, 10 Apr 2019 04:26:42 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C6A6FD9B6148CDA0D19D; Wed, 10 Apr 2019 16:26:39 +0800 (CST) Received: from huawei.com (10.67.189.167) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Wed, 10 Apr 2019 16:26:30 +0800 From: xiaojiangfeng To: , , , CC: , Subject: [PATCH] of: del redundant type conversion Date: Wed, 10 Apr 2019 16:29:41 +0800 Message-ID: <1554884981-20309-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 The type of variable l in early_init_dt_scan_chosen is int, there is no need to convert to int. 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..de893c9 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, min(l, COMMAND_LINE_SIZE)); /* * CONFIG_CMDLINE is meant to be a default in case nothing else -- 1.8.5.6