Skip to content
Commit 4b0252ea authored by Aleksandar Markovic's avatar Aleksandar Markovic Committed by Carles Cufí
Browse files

drivers: modem: Fix Coverity issue in ublox-sara-r4.c



Coverity reported unused value for a variable "ret" in the function
send_socket_data(). Indeed there were two subsequent assignments
to "ret", meaning that the first one was unused.

The root cause of the problem is not checking the value of "ret"
after correctly invoking a function within send_socket_data(). Fix
this by adding appropriate checks.

Coverity-CID: 215249

Signed-off-by: default avatarAleksandar Markovic <aleksandar.markovic.sa@gmail.com>
parent df5d1f22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment