summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqarkai <qarkai@gmail.com>2019-11-04 13:48:18 +0300
committerqarkai <qarkai@gmail.com>2019-11-04 13:48:18 +0300
commit927f22c9728cdc2dd77982bd5f160d9676e43b56 (patch)
treef3420a14f6cb3d492842d0bb0d4997a5bb7f8d85
parent591231e1a23d6fcd38b40f3eab4625b618cb8d5d (diff)
downloadpidgin-927f22c9728cdc2dd77982bd5f160d9676e43b56.tar.gz
Remove redundant comparisons in conditions
-rw-r--r--pidgin/gtkutils.c2
-rw-r--r--pidgin/libpidgin.c2
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 %"