Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 075db3b5 authored by Channagoud Kadabi's avatar Channagoud Kadabi Committed by Gerrit - the friendly Code Review server
Browse files

drivers: Fix compiler warnings



Fix uninitialized variable warnings with the config option
CC_OPTIMIZE_FOR_PERFORMANCE enabled.

Change-Id: I14332ea7068071e8abaf8b1fd12820f46d0e9573
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent ec5d07c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2017, 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
@@ -1433,7 +1433,7 @@ void diag_dci_channel_open_work(struct work_struct *work)

void diag_dci_notify_client(int peripheral_mask, int data, int proc)
{
	int stat;
	int stat = 0;
	struct siginfo info;
	struct list_head *start, *temp;
	struct diag_dci_client_tbl *entry = NULL;
+2 −3
Original line number Diff line number Diff line
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2017, 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
@@ -223,10 +223,9 @@ static void dump_drp_sb_syn_reg(struct regmap *llcc_map)
	int sb_err_ways;
	u32 synd_reg;
	u32 synd_val;
	u32 synd_reg_offset;

	for (i = 0; i < DRP_SYN_REG_CNT; i++) {
		synd_reg_offset = DRP_ECC_SB_ERR_SYN0 + (i * 4);
		synd_reg = DRP_ECC_SB_ERR_SYN0 + (i * 4);
		regmap_read(llcc_map, synd_reg, &synd_val);
		edac_printk(KERN_CRIT, EDAC_LLCC, "DRP_ECC_SYN%d: 0x%8x\n",
			i, synd_val);
+1 −1
Original line number Diff line number Diff line
@@ -1914,7 +1914,7 @@ static int dsi_display_dfps_update(struct dsi_display *display,
	struct dsi_display_mode *panel_mode;
	struct dsi_dfps_capabilities dfps_caps;
	int rc = 0;
	int i;
	int i = 0;

	if (!display || !dsi_mode) {
		pr_err("Invalid params\n");
+1 −1
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ int dsi_connector_get_modes(struct drm_connector *connector,
{
	u32 count = 0;
	u32 size = 0;
	struct dsi_display_mode *modes;
	struct dsi_display_mode *modes = NULL;
	struct drm_display_mode drm_mode;
	int rc, i;

+1 −1
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ static int tcs_mbox_write(struct mbox_chan *chan, struct tcs_mbox_msg *msg,
	int d = drv->drv_id;
	struct tcs_mbox *tcs;
	int i, slot, offset, m, n;
	struct tcs_response *resp;
	struct tcs_response *resp = NULL;

	tcs = get_tcs_for_msg(drv, msg);
	if (IS_ERR(tcs))
Loading