summaryrefslogtreecommitdiffstats
path: root/tools/iio/generic_buffer.c
diff options
context:
space:
mode:
authorCristina Opriceana <cristina.opriceana@gmail.com>2015-07-13 15:15:56 +0200
committerJonathan Cameron <jic23@kernel.org>2015-07-20 19:41:22 +0200
commitff1ac639b395d58bbd99ff4a36b10eebb81544a3 (patch)
tree2668b619972abfcc7025c2f56fda8fba60ef508a /tools/iio/generic_buffer.c
parentiio: light: Add support for TXC PA12 als and proximity sensor (diff)
downloadlinux-ff1ac639b395d58bbd99ff4a36b10eebb81544a3.tar.xz
linux-ff1ac639b395d58bbd99ff4a36b10eebb81544a3.zip
tools: iio: Remove explicit NULL comparison
Remove explicit NULL comparison and write it in its simpler form as recommended by checkpatch.pl. Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com> Reviewed-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio/generic_buffer.c')
-rw-r--r--tools/iio/generic_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/iio/generic_buffer.c b/tools/iio/generic_buffer.c
index 0e737238ca74..9535c2dc25af 100644
--- a/tools/iio/generic_buffer.c
+++ b/tools/iio/generic_buffer.c
@@ -270,7 +270,7 @@ int main(int argc, char **argv)
}
}
- if (device_name == NULL) {
+ if (!device_name) {
printf("Device name not set\n");
print_usage();
return -1;
@@ -290,7 +290,7 @@ int main(int argc, char **argv)
return -ENOMEM;
if (!notrigger) {
- if (trigger_name == NULL) {
+ if (!trigger_name) {
/*
* Build the trigger name. If it is device associated
* its name is <device_name>_dev[n] where n matches