summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorxiaojiangfeng <xiaojiangfeng@huawei.com>2019-04-10 10:29:41 +0200
committerRob Herring <robh@kernel.org>2019-04-29 19:50:20 +0200
commitb827bcbba36d0b9447239136e2237710cca70383 (patch)
tree82380b64e8c8a1b011db8bb60a108bb26baec6ad /drivers/of
parentdt-bindings: mfd: axp20x: Add fallback for axp805 (diff)
downloadlinux-b827bcbba36d0b9447239136e2237710cca70383.tar.xz
linux-b827bcbba36d0b9447239136e2237710cca70383.zip
of: del redundant type conversion
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 <xiaojiangfeng@huawei.com> Reviewed-by: Frank Rowand <frank.rowand@sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 4734223ab702..de893c9616a1 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