[PATCH 06/17] SAP: Remove not needed NULL pointer checks from send_message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 8612d0d..f66e23f 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,
-- 
on behalf of ST-Ericsson

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux