diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-06-05 09:35:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-12 18:20:17 (GMT) |
commit | 592314e9e1c0057bdb75ff00cbd1c51aa06c65e7 (patch) | |
tree | 8cdd520835b2127a69964e707cbcc5ec6d912c25 /drivers/staging/android | |
parent | c810a399798022d545191e2daaca0368623c15d3 (diff) | |
download | linux-592314e9e1c0057bdb75ff00cbd1c51aa06c65e7.tar.xz |
staging: Android: Fix NULL pointer related warning in alarm-dev.c file
Fixes the following sparse warning:
drivers/staging/android/alarm-dev.c:259:35: warning: Using plain integer as NULL pointer
Cc: Brian Swetland <swetland@google.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/alarm-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/alarm-dev.c b/drivers/staging/android/alarm-dev.c index 32614d6..c2d87c5 100644 --- a/drivers/staging/android/alarm-dev.c +++ b/drivers/staging/android/alarm-dev.c @@ -255,7 +255,7 @@ static int alarm_release(struct inode *inode, struct file *file) unsigned long flags; spin_lock_irqsave(&alarm_slock, flags); - if (file->private_data != 0) { + if (file->private_data) { for (i = 0; i < ANDROID_ALARM_TYPE_COUNT; i++) { uint32_t alarm_type_mask = 1U << i; if (alarm_enabled & alarm_type_mask) { |