diff options
author | Paul Keith <javelinanddart@gmail.com> | 2017-12-31 02:17:32 +0100 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-10-23 01:12:56 +0300 |
commit | 23dc599d41a3c9952852e7564c8b5e5e0cbbf931 (patch) | |
tree | 9208544b6ce9b13236e9baf6e1ed8a8c4d2dead6 /utils.c | |
parent | 45df97b4a01aaf7fd6e2df17126bd53e59e0099a (diff) | |
download | vendor_qcom_opensource_power-23dc599d41a3c9952852e7564c8b5e5e0cbbf931.tar.gz vendor_qcom_opensource_power-23dc599d41a3c9952852e7564c8b5e5e0cbbf931.tar.bz2 vendor_qcom_opensource_power-23dc599d41a3c9952852e7564c8b5e5e0cbbf931.zip |
power: Fix a few compiler warnings
* And unify styling a little bit
Change-Id: I7f9bb43a534e352fdd7693ff975749864f8addb3
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -210,12 +210,15 @@ int is_interactive_governor(char* governor) { return 0; } +#ifndef INTERACTION_BOOST +void interaction(int UNUSED(duration), int UNUSED(num_args), int UNUSED(opt_list[])) +{ +#else 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) { @@ -230,7 +233,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[0] == NULL) + if (duration < 0 || num_args < 1 || opt_list[0] == 0) return 0; if (qcopt_handle) { |