Skip to content

Commit ae53e37

Browse files
Dan Carpentergregkh
authored andcommitted
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>
1 parent 3385af8 commit ae53e37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/memory/of_memory.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const struct lpddr2_timings *of_get_ddr_timings(struct device_node *np_ddr,
109109
struct lpddr2_timings *timings = NULL;
110110
u32 arr_sz = 0, i = 0;
111111
struct device_node *np_tim;
112-
char *tim_compat;
112+
char *tim_compat = NULL;
113113

114114
switch (device_type) {
115115
case DDR_TYPE_LPDDR2_S2:

0 commit comments

Comments
 (0)