Messages in this thread | | | Date | Mon, 24 Apr 2023 09:01:38 +0200 | Subject | Re: [PATCH] drivers: nfc: nfcsim: remove return value check of `dev_dir` | From | Krzysztof Kozlowski <> |
| |
On 24/04/2023 04:41, Jianuo Kuang wrote: > Smatch complains that: > nfcsim_debugfs_init_dev() warn: 'dev_dir' is an error pointer or valid > > According to the documentation of the debugfs_create_dir() function, > there is no need to check the return value of this function. > Just delete the dead code. > > Fixes: f9ac6273e5b8 ("NFC: nfcsim: Add support for sysfs control entry") > Signed-off-by: Jianuo Kuang <u202110722@hust.edu.cn> > Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn> > ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards, Krzysztof
| |