mirror of https://gitee.com/openkylin/linux.git
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:
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;
|
||||
|
|
Loading…
Reference in New Issue