diff options
author | xiaojiangfeng <xiaojiangfeng@huawei.com> | 2019-04-10 16:29:41 +0800 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-04-29 12:50:20 -0500 |
commit | b827bcbba36d0b9447239136e2237710cca70383 (patch) | |
tree | 82380b64e8c8a1b011db8bb60a108bb26baec6ad /drivers/of | |
parent | f52e30ebfd6290343074a7a655b1bad3556f8b6f (diff) | |
download | linux-b827bcbba36d0b9447239136e2237710cca70383.tar.gz linux-b827bcbba36d0b9447239136e2237710cca70383.tar.bz2 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.c | 2 |
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 |