From dd3db6f6bd3c9171596ccce343ad718691897a64 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 15 Jul 2012 20:16:59 -0300 Subject: qmimodem: Avoid shadowing length parameter --- drivers/qmimodem/sms.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/qmimodem') diff --git a/drivers/qmimodem/sms.c b/drivers/qmimodem/sms.c index 6459d7f7..43bf22d1 100644 --- a/drivers/qmimodem/sms.c +++ b/drivers/qmimodem/sms.c @@ -351,15 +351,15 @@ static void event_notify(struct qmi_result *result, void *user_data) message = qmi_result_get(result, QMI_WMS_RESULT_MESSAGE, &len); if (message) { - uint16_t len; + uint16_t plen; - len = GUINT16_FROM_LE(message->msg_length); + plen = GUINT16_FROM_LE(message->msg_length); DBG("ack_required %d transaction id %u", message->ack_required, GUINT32_FROM_LE(message->transaction_id)); - DBG("msg format %d PDU length %d", message->msg_format, len); + DBG("msg format %d PDU length %d", message->msg_format, plen); - ofono_sms_deliver_notify(sms, message->msg_data, len, len); + ofono_sms_deliver_notify(sms, message->msg_data, plen, plen); } } -- cgit v1.2.3