drm: msm: dsi: fix local variable not initialized issue
Local variable in function should be initialized before using it. Change-Id: I061b10913182ed11b7a8cdb1baab900ac7e10ea6 CRs-Fixed: 2202957 Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
This commit is contained in:
parent
1707cb3ff1
commit
0932f23cdb
3 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -1089,7 +1089,7 @@ error:
|
|||
static int dsi_enable_ulps(struct dsi_ctrl *dsi_ctrl)
|
||||
{
|
||||
int rc = 0;
|
||||
u32 lanes;
|
||||
u32 lanes = 0;
|
||||
u32 ulps_lanes;
|
||||
|
||||
if (dsi_ctrl->host_config.panel_mode == DSI_OP_CMD_MODE)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -565,7 +565,7 @@ u32 dsi_ctrl_hw_14_get_cmd_read_data(struct dsi_ctrl_hw *ctrl,
|
|||
u32 read_cnt;
|
||||
u32 rx_byte = 0;
|
||||
u32 repeated_bytes = 0;
|
||||
u8 reg[16];
|
||||
u8 reg[16] = {0};
|
||||
u32 pkt_size = 0;
|
||||
int buf_offset = read_offset;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -1481,8 +1481,8 @@ static int dsi_display_dfps_update(struct dsi_display *display,
|
|||
m_ctrl = &display->ctrl[display->clk_master_idx];
|
||||
rc = dsi_ctrl_async_timing_update(m_ctrl->ctrl, timing);
|
||||
if (rc) {
|
||||
pr_err("[%s] failed to dfps update host_%d, rc=%d\n",
|
||||
display->name, i, rc);
|
||||
pr_err("[%s] failed to dfps update clock master, rc=%d\n",
|
||||
display->name, rc);
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue