power: Fix a few compiler warnings
* And unify styling a little bit Change-Id: I7f9bb43a534e352fdd7693ff975749864f8addb3
This commit is contained in:
committed by
Michael Bestas
parent
2759522e9d
commit
0c54d07956
4
utils.c
4
utils.c
@@ -231,7 +231,7 @@ void interaction(int duration, int num_args, int opt_list[])
|
||||
#ifdef INTERACTION_BOOST
|
||||
static int lock_handle = 0;
|
||||
|
||||
if (duration < 0 || num_args < 1 || opt_list[0] == NULL)
|
||||
if (duration < 0 || num_args < 1 || opt_list[0] == 0)
|
||||
return;
|
||||
|
||||
if (qcopt_handle) {
|
||||
@@ -246,7 +246,7 @@ void interaction(int duration, int num_args, int opt_list[])
|
||||
|
||||
int interaction_with_handle(int lock_handle, int duration, int num_args, int opt_list[])
|
||||
{
|
||||
if (duration < 0 || num_args < 1 || opt_list == NULL)
|
||||
if (duration < 0 || num_args < 1 || opt_list[0] == 0)
|
||||
return 0;
|
||||
|
||||
if (qcopt_handle) {
|
||||
|
||||
Reference in New Issue
Block a user