Skip to content

Commit a4084c8

Browse files
a3fsaschahauer
authored andcommitted
param: drop priv from dev_add_param_string_ro
dev_add_param_string_ro() is used nowhere, but when we do, having an unused priv parameter serves no purpose, so drop it. Signed-off-by: Ahmad Fatoum <[email protected]> Link: https://lore.barebox.org/[email protected] Signed-off-by: Sascha Hauer <[email protected]>
1 parent af0c0b3 commit a4084c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/param.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ static inline struct param_d *dev_add_param_bool_ro(struct device *dev,
334334

335335
static inline struct param_d *dev_add_param_string_ro(struct device *dev,
336336
const char *name,
337-
char **value,
338-
void *priv)
337+
char **value)
339338
{
340339
return dev_add_param_string(dev, name, param_set_readonly, NULL, value, NULL);
341340
}

0 commit comments

Comments
 (0)