[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200125084403.GA3386@google.com>
Date: Sat, 25 Jan 2020 14:14:03 +0530
From: Saurav Girepunje <saurav.girepunje@...il.com>
To: vireshk@...nel.org, johan@...nel.org, elder@...nel.org,
gregkh@...uxfoundation.org, greybus-dev@...ts.linaro.org,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Cc: saurav.girepunje@...mail.com
Subject: [PATCH] staging: greybus: bootrom: fix uninitialized variables
fix uninitialized variables issue found using static code analysis tool
(error) Uninitialized variable: offset
(error) Uninitialized variable: size
Signed-off-by: Saurav Girepunje <saurav.girepunje@...il.com>
---
drivers/staging/greybus/bootrom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/greybus/bootrom.c b/drivers/staging/greybus/bootrom.c
index a8efb86..9eabeb3 100644
--- a/drivers/staging/greybus/bootrom.c
+++ b/drivers/staging/greybus/bootrom.c
@@ -245,7 +245,7 @@ static int gb_bootrom_get_firmware(struct gb_operation *op)
struct gb_bootrom_get_firmware_request *firmware_request;
struct gb_bootrom_get_firmware_response *firmware_response;
struct device *dev = &op->connection->bundle->dev;
- unsigned int offset, size;
+ unsigned int offset = 0, size = 0;
enum next_request_type next_request;
int ret = 0;
--
1.9.1
Powered by blists - more mailing lists