summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-04-15 17:50:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-01 14:20:04 -0700
commitae53e3740036b5350c4a10dc6fd00fbe3f5134ff (patch)
tree1585b2141b2db047e63d8c4d4b9f9f99e54efcdd /drivers
parent3385af8c9d63be16295ae625d1ed81052167efb3 (diff)
downloadlinux-stable-ae53e3740036b5350c4a10dc6fd00fbe3f5134ff.tar.gz
linux-stable-ae53e3740036b5350c4a10dc6fd00fbe3f5134ff.tar.bz2
linux-stable-ae53e3740036b5350c4a10dc6fd00fbe3f5134ff.zip
memory: of_memory: Silence uninitialized variable warning
Presumably we never use the default: case statement which prints a warning message. But my static checker complains that if we do, we will hit an uninitialized variable warning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/memory/of_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memory/of_memory.c b/drivers/memory/of_memory.c
index 60074351f17e..9daf94bb8f27 100644
--- a/drivers/memory/of_memory.c
+++ b/drivers/memory/of_memory.c
@@ -109,7 +109,7 @@ const struct lpddr2_timings *of_get_ddr_timings(struct device_node *np_ddr,
struct lpddr2_timings *timings = NULL;
u32 arr_sz = 0, i = 0;
struct device_node *np_tim;
- char *tim_compat;
+ char *tim_compat = NULL;
switch (device_type) {
case DDR_TYPE_LPDDR2_S2: