mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drivers/staging/lustre: Clean up another C warnining: set but not used
drivers/staging/lustre/lustre/fid/../include/lustre_cfg.h: In function 'lustre_cfg_free': drivers/staging/lustre/lustre/fid/../include/lustre_cfg.h:253:6: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len; Yep, we're just gonna call kfree, no need to calculate len. Bye-bye. Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f65a0922f0
commit
7f6ab07293
@ -252,10 +252,6 @@ static inline struct lustre_cfg *lustre_cfg_new(int cmd,
|
||||
|
||||
static inline void lustre_cfg_free(struct lustre_cfg *lcfg)
|
||||
{
|
||||
int len;
|
||||
|
||||
len = lustre_cfg_len(lcfg->lcfg_bufcount, lcfg->lcfg_buflens);
|
||||
|
||||
kfree(lcfg);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user