Fix argument order in memset call in ./drivers/media/common/ir-functions.c
Size is the third argument, not the second.
Signed-off-by Dave Jones <[email protected]>
drivers/media/common/ir-functions.c +1 -1
@@ -64,7 +64,7 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, ir->ir_type = ir_type; -memset (ir->ir_codes,sizeof (ir->ir_codes),0 ); +memset (ir->ir_codes,0 ,sizeof (ir->ir_codes));/* * FIXME: This is a temporary workaround to use the new IR tables
Américo Wang
Acked-byQuoted 3 lines · Dave Jones
Size is the third argument, not the second.
Signed-off-by Dave Jones <[email protected]>
Definitely yes.
Acked-by WANG Cong <[email protected]>
Quoted 14 lines
drivers/media/common/ir-functions.c +1
-1@@ -64,7 +64,7 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, ir->ir_type = ir_type; - memset(ir->ir_codes, sizeof(ir->ir_codes), 0); + memset(ir->ir_codes, 0, sizeof(ir->ir_codes)); /** FIXME: This is a temporary workaround to use the new IR tables