diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-09-04 10:52:03 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-13 01:24:43 (GMT) |
commit | 9b532df0fc1eb0834261d9cfbeef0f346c817d7f (patch) | |
tree | 43bc32ca3d8c90510f4a2d0b93bd812de2b78f9a | |
parent | b0183053e31a51f7814b5ea257db010b924b3857 (diff) | |
download | linux-9b532df0fc1eb0834261d9cfbeef0f346c817d7f.tar.xz |
staging: most: return NULL instead of integer
The return type of get_aim_dev() is a pointer but we were returning 0
incase of failure.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/most/aim-v4l2/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index d968791..8333245 100644 --- a/drivers/staging/most/aim-v4l2/video.c +++ b/drivers/staging/most/aim-v4l2/video.c @@ -430,7 +430,7 @@ static struct most_video_dev *get_aim_dev( } } spin_unlock(&list_lock); - return 0; + return NULL; } static int aim_rx_data(struct mbo *mbo) |