From: xiaojiangfeng Date: Wed, 10 Apr 2019 08:29:41 +0000 (+0800) Subject: of: del redundant type conversion X-Git-Tag: v5.4-rc1~1057^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b827bcbba36d0b9447239136e2237710cca70383;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Frank Rowand Signed-off-by: Rob Herring --- 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