summaryrefslogtreecommitdiff
path: root/drivers/qmimodem
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-07-15 20:16:59 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-07-15 20:16:59 -0300
commitdd3db6f6bd3c9171596ccce343ad718691897a64 (patch)
tree9d57c207a8faeddc8d1119c854de6c0f96783b5d /drivers/qmimodem
parentd311bccb9dd10406aa2cd0a4db0a7de70fbdced4 (diff)
qmimodem: Avoid shadowing length parameter
Diffstat (limited to 'drivers/qmimodem')
-rw-r--r--drivers/qmimodem/sms.c8
1 files changed, 4 insertions, 4 deletions
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);
}
}