diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-03-26 18:09:19 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-03-26 18:10:15 +0200 |
commit | 39fb1fb916effc6fc603555238c0d08d4673ffa6 (patch) | |
tree | 0a6638fcc44a8c0d61a25cf9a02601a58eaf06a8 /doc/examples | |
parent | 052364d906748814ff1c2018fd77274020aa1e59 (diff) |
libbsc: nokia_site: Fix uninitialized return val
Fixes following compilation warning:
bts_nokia_site.c:1248:9: error: ‘ret’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return ret;
This could happen if parameter len is passed with value 0.
If we reach the end of the function, it means everything went fine, so
we can return 0 instead of using ret, which is only used to store error
code before returning.
Change-Id: Ic60c8c632a6ddadb8f197d56cc68c2dbfc121d05
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions