Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

xiaojiangfeng and committed by
Rob Herring
b827bcbb f52e30eb

+1 -1
+1 -1
drivers/of/fdt.c
··· 1091 1091 /* Retrieve command line */ 1092 1092 p = of_get_flat_dt_prop(node, "bootargs", &l); 1093 1093 if (p != NULL && l > 0) 1094 - strlcpy(data, p, min((int)l, COMMAND_LINE_SIZE)); 1094 + strlcpy(data, p, min(l, COMMAND_LINE_SIZE)); 1095 1095 1096 1096 /* 1097 1097 * CONFIG_CMDLINE is meant to be a default in case nothing else