diff options
| author | Xu Panda <xu.panda@zte.com.cn> | 2026-06-01 01:07:52 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-17 14:54:55 +0200 |
| commit | fe58bfdd013ed84bd308321fac8f54c8ec4b823c (patch) | |
| tree | 1dcaab51eaee06e4230726667d480bf98f437690 /drivers/accessibility | |
| parent | 9601f59a1966f12c0d4652e32663f3553f20a9e9 (diff) | |
| download | linux-next-fe58bfdd013ed84bd308321fac8f54c8ec4b823c.tar.gz linux-next-fe58bfdd013ed84bd308321fac8f54c8ec4b823c.zip | |
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>
Diffstat (limited to 'drivers/accessibility')
| -rw-r--r-- | drivers/accessibility/speakup/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accessibility/speakup/utils.h b/drivers/accessibility/speakup/utils.h index 4ce9a12f7664..db00c962f8e2 100644 --- a/drivers/accessibility/speakup/utils.h +++ b/drivers/accessibility/speakup/utils.h @@ -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); } |
