mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
staging/most: fix return value for DIM_GetChannelState
Return NULL instead of 0 for invalid input. Signed-off-by: Tomas Melin <tomas.melin@iki.fi> Acked-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ad88aae057
commit
910bf1efe6
@@ -889,7 +889,7 @@ struct dim_ch_state_t *DIM_GetChannelState(struct dim_channel *ch,
|
||||
struct dim_ch_state_t *state_ptr)
|
||||
{
|
||||
if (!ch || !state_ptr)
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
state_ptr->ready = ch->state.level < 2;
|
||||
state_ptr->done_buffers = ch->done_sw_buffers_number;
|
||||
|
||||
Reference in New Issue
Block a user