[PATCH] ubifs: remove unnecessary kobject_del()

Zhihao Cheng chengzhihao1 at huawei.com
Thu Apr 6 05:29:13 PDT 2023


Hi,
>> I think we should still reserve the 'redundant' kobject_del(),
>> removing it won't bring any performance improvement.
> 
> Since it's redundant, why not to remove it.
> 

In my personal view, 'redundant' means removing kobject_del() is okay, 
it won't bring any bugs. But removing it won't make code more 
readability or gain any performance improvement, so it could be 
reserved. Whether to remove kobject_del() depends on UBIFS maintainer, I 
just help to check if the modification could affect the normal logic.




More information about the linux-mtd mailing list