fdt_support: board_fdt_chosen_bootargs() should return const char*
It should be structured this way to demonstrate to the caller that freeing the return value is unnecessary and that the caller cannot modify it. The function fdt_setprop() includes a parameter with a const char* prototype, so it is better to use the const qualifier. Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -236,7 +236,7 @@ int board_rng_seed(struct abuf *buf);
|
||||
*
|
||||
* Return: pointer to kernel command line arguments in memory
|
||||
*/
|
||||
char *board_fdt_chosen_bootargs(void);
|
||||
const char *board_fdt_chosen_bootargs(void);
|
||||
|
||||
/*
|
||||
* The keystone2 SOC requires all 32 bit aliased addresses to be converted
|
||||
|
Reference in New Issue
Block a user