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

Commit a070454a authored by Channagoud Kadabi's avatar Channagoud Kadabi Committed by Runmin Wang
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>
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent 04c1a043
Loading
Loading
Loading
Loading
+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 −2
Original line number Diff line number Diff line
@@ -68,7 +68,6 @@ struct llcc_drv_data {
/* Get the slice entry by index */
static struct llcc_slice_desc *llcc_slice_get_entry(struct device *dev, int n)
{
	int id;
	struct of_phandle_args phargs;
	struct llcc_drv_data *drv;
	const struct llcc_slice_config *llcc_data_ptr;
@@ -102,7 +101,7 @@ static struct llcc_slice_desc *llcc_slice_get_entry(struct device *dev, int n)
	}

	if (llcc_data_ptr == NULL) {
		pr_err("can't find %d usecase id\n", id);
		pr_err("can't find %d usecase id\n", phargs.args[0]);
		return ERR_PTR(-ENODEV);
	}