]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging/most: fix return value for DIM_GetChannelState
authorTomas Melin <tomas.melin@iki.fi>
Sun, 9 Aug 2015 14:08:41 +0000 (17:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 00:33:23 +0000 (17:33 -0700)
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>
drivers/staging/most/hdm-dim2/dim2_hal.c

index 01b748944ee468be20422d7162825304007c3d5b..a54cf2cedac3c4a0608466415f7b14ee3ef2eef7 100644 (file)
@@ -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;