summaryrefslogtreecommitdiff
path: root/include/linux/memory_hotplug.h
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-12-27 02:02:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-29 13:59:22 +0300
commite849ada70c6b1ee22e9f4f5c0e38231dcee53f04 (patch)
tree7093c6d36fb88f33fcb3473b60d9fbdc5593eb45 /include/linux/memory_hotplug.h
parentdad9f13d967b4e53e8eaf5f9c690f8e778ad9802 (diff)
downloadlinux-e849ada70c6b1ee22e9f4f5c0e38231dcee53f04.tar.xz
char: misc: Use IS_ERR() for filp_open() return value
filp_open() never returns NULL, it returns either a valid pointer or an error pointer. Using IS_ERR_OR_NULL() is unnecessary. Additionally, if filp were NULL, PTR_ERR(NULL) would return 0, leading to a misleading error message. Fixes: 74d8361be344 ("char: misc: add test cases") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202506132058.thWZHlrb-lkp@intel.com/ Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Acked-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com> Link: https://patch.msgid.link/20251226230248.113073-1-alperyasinak1@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/memory_hotplug.h')
0 files changed, 0 insertions, 0 deletions