From 25f0306851fa0b1476f10d25801b357d1e8f0a3e Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 6 Jun 2012 15:19:16 +0200 Subject: [PATCH] SAP: Remove not needed NULL pointer checks from send_message Both conn and buff are always passed as valid pointers. No need to double check them. --- sap/server.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sap/server.c b/sap/server.c index 8612d0d01..f66e23f1a 100644 --- a/sap/server.c +++ b/sap/server.c @@ -244,9 +244,6 @@ static int send_message(struct sap_connection *conn, void *buf, size_t size) GError *gerr = NULL; GIOStatus gstatus; - if (!conn || !buf) - return -EINVAL; - SAP_VDBG("conn %p, size %zu", conn, size); gstatus = g_io_channel_write_chars(conn->io, buf, size, &written, -- 2.47.3