Buffer passed to check_msg() is always valid. --- sap/server.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sap/server.c b/sap/server.c index e44fa08..776bf36 100644 --- a/sap/server.c +++ b/sap/server.c @@ -129,9 +129,6 @@ static int is_reset_sim_req_allowed(uint8_t processing_req) static int check_msg(struct sap_message *msg) { - if (!msg) - return -EINVAL; - switch (msg->id) { case SAP_CONNECT_REQ: if (msg->nparam != 0x01) -- 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