mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02: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:
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user