mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-16 04:47:11 +00:00
Fix more coverity warnings
Assorted minor code issues, which we should fix so any new errors stand out more. BUG=chromium:643769 BRANCH=none TEST=make runtests Change-Id: I82ece2de948ef224115c408bdfc09445d3da119b Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/390337 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
fefc682bb7
commit
770202f0c7
@@ -202,8 +202,8 @@ int vb2_copy_packed_key(struct vb2_packed_key *dest,
|
||||
|
||||
struct vb2_packed_key *vb2_read_packed_key(const char *filename)
|
||||
{
|
||||
struct vb2_packed_key *key;
|
||||
uint32_t file_size;
|
||||
struct vb2_packed_key *key = NULL;
|
||||
uint32_t file_size = 0;
|
||||
|
||||
if (VB2_SUCCESS !=
|
||||
vb2_read_file(filename, (uint8_t **)&key, &file_size)) {
|
||||
|
||||
Reference in New Issue
Block a user