From 8593eeb343ec134c02adfce227f7a97acde462ac Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Wed, 29 Jun 2016 11:22:36 -0700 Subject: [PATCH] Fix misc-macro-parentheses warnings in hardware/ril. Add parentheses around negative literals. Bug: 28705665 Test: build with clang-tidy Change-Id: I038c7cbf3728a4e9ccc20d8c7317ddae3fa9b571 --- reference-ril/atchannel.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/reference-ril/atchannel.h b/reference-ril/atchannel.h index cfd49d5..9282915 100644 --- a/reference-ril/atchannel.h +++ b/reference-ril/atchannel.h @@ -31,16 +31,16 @@ extern void AT_DUMP(const char* prefix, const char* buff, int len); #define AT_DUMP(prefix,buff,len) do{}while(0) #endif -#define AT_ERROR_GENERIC -1 -#define AT_ERROR_COMMAND_PENDING -2 -#define AT_ERROR_CHANNEL_CLOSED -3 -#define AT_ERROR_TIMEOUT -4 -#define AT_ERROR_INVALID_THREAD -5 /* AT commands may not be issued from - reader thread (or unsolicited response - callback */ -#define AT_ERROR_INVALID_RESPONSE -6 /* eg an at_send_command_singleline that - did not get back an intermediate - response */ +#define AT_ERROR_GENERIC (-1) +#define AT_ERROR_COMMAND_PENDING (-2) +#define AT_ERROR_CHANNEL_CLOSED (-3) +#define AT_ERROR_TIMEOUT (-4) +#define AT_ERROR_INVALID_THREAD (-5) /* AT commands may not be issued from + reader thread (or unsolicited response + callback */ +#define AT_ERROR_INVALID_RESPONSE (-6) /* eg an at_send_command_singleline that + did not get back an intermediate + response */ typedef enum { -- 2.11.0