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 <a.fatoum@xxxxxxxxxxxxxx> --- include/param.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/param.h b/include/param.h index 76a077fd758a..5d4f7f3db52f 100644 --- a/include/param.h +++ b/include/param.h @@ -334,8 +334,7 @@ static inline struct param_d *dev_add_param_bool_ro(struct device *dev, static inline struct param_d *dev_add_param_string_ro(struct device *dev, const char *name, - char **value, - void *priv) + char **value) { return dev_add_param_string(dev, name, param_set_readonly, NULL, value, NULL); } -- 2.39.2