From 927f22c9728cdc2dd77982bd5f160d9676e43b56 Mon Sep 17 00:00:00 2001 From: qarkai Date: Mon, 4 Nov 2019 13:48:18 +0300 Subject: Remove redundant comparisons in conditions --- pidgin/gtkutils.c | 2 +- pidgin/libpidgin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c index 3be7bfb18e..ad7cb63793 100644 --- a/pidgin/gtkutils.c +++ b/pidgin/gtkutils.c @@ -699,7 +699,7 @@ pidgin_parse_x_im_contact(const char *msg, gboolean all_accounts, if (*s != '\0') *s++ = '\0'; /* Clear past any whitespace */ - while (*s != '\0' && *s == ' ') + while (*s == ' ') s++; /* Now let's grab until the end of the line. */ diff --git a/pidgin/libpidgin.c b/pidgin/libpidgin.c index a9eb607cd3..b4f5d4537d 100644 --- a/pidgin/libpidgin.c +++ b/pidgin/libpidgin.c @@ -152,7 +152,7 @@ static void sighandler(int sig) } written = write(signal_sockets[0], &sig, sizeof(int)); - if (written < 0 || written != sizeof(int)) { + if (written != sizeof(int)) { /* This should never happen */ purple_debug_error("sighandler", "Received signal %d but only " "wrote %" G_GSSIZE_FORMAT " bytes out of %" -- cgit v1.2.1