summaryrefslogtreecommitdiff
path: root/drivers/staging/android/alarm-dev.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-06-05 15:05:13 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-12 11:20:17 -0700
commit592314e9e1c0057bdb75ff00cbd1c51aa06c65e7 (patch)
tree8cdd520835b2127a69964e707cbcc5ec6d912c25 /drivers/staging/android/alarm-dev.c
parentc810a399798022d545191e2daaca0368623c15d3 (diff)
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/alarm-dev.c')
-rw-r--r--drivers/staging/android/alarm-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/alarm-dev.c b/drivers/staging/android/alarm-dev.c
index 32614d611283..c2d87c546e99 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) {