mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 14:33:24 -04:00
speakup/utils: use "!P" instead of "P == 0"
comparing pointer to 0, use !P instead of it. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Xu Panda <xu.panda@zte.com.cn> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Link: https://patch.msgid.link/20260531230804.254962-4-samuel.thibault@ens-lyon.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9601f59a19
commit
fe58bfdd01
@@ -36,7 +36,7 @@ static inline void open_input(const char *dir_name, const char *name)
|
||||
else
|
||||
snprintf(filename, sizeof(filename), "%s", name);
|
||||
infile = fopen(filename, "r");
|
||||
if (infile == 0) {
|
||||
if (!infile) {
|
||||
fprintf(stderr, "can't open %s\n", filename);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user