summaryrefslogtreecommitdiff
path: root/drivers/staging/most/aim-v4l2
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-04 16:22:03 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-12 18:24:43 -0700
commit9b532df0fc1eb0834261d9cfbeef0f346c817d7f (patch)
tree43bc32ca3d8c90510f4a2d0b93bd812de2b78f9a /drivers/staging/most/aim-v4l2
parentb0183053e31a51f7814b5ea257db010b924b3857 (diff)
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>
Diffstat (limited to 'drivers/staging/most/aim-v4l2')
-rw-r--r--drivers/staging/most/aim-v4l2/video.c2
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 d9687910e4a4..83332454974c 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)