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>
This commit is contained in:
parent
8ab6abfca0
commit
ff1ac639b3
3 changed files with 35 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue