kernel: Fix build errors due to uninitialized variables
Newer gcc version requires all variables to be initialized.
Change-Id: I2f3029d17fab36ec6612552d4d2648e317f261d8
Signed-off-by: Siddeswar Alugant <salugant@codeaurora.org>
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
diff --git a/drivers/soc/qcom/qbt1000.c b/drivers/soc/qcom/qbt1000.c
index 86f314a..b7472a4 100644
--- a/drivers/soc/qcom/qbt1000.c
+++ b/drivers/soc/qcom/qbt1000.c
@@ -471,7 +471,7 @@
case QBT1000_SEND_TZCMD:
{
struct qbt1000_send_tz_cmd tzcmd;
- void *rsp_buf;
+ void *rsp_buf = NULL;
if (copy_from_user(&tzcmd, priv_arg,
sizeof(tzcmd))
@@ -861,8 +861,8 @@
static irqreturn_t qbt1000_ipc_irq_handler(int irq, void *dev_id)
{
uint8_t *msg_buffer;
- struct fw_ipc_cmd *rx_cmd;
- struct fw_ipc_header *header;
+ struct fw_ipc_cmd *rx_cmd = NULL;
+ struct fw_ipc_header *header = NULL;
int i, j;
uint32_t rxipc = FP_APP_CMD_RX_IPC;
struct qbt1000_drvdata *drvdata = (struct qbt1000_drvdata *)dev_id;