Input: synaptics-rmi4 - change a char type to u8
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 30 May 2017 03:21:52 +0000 (20:21 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 30 May 2017 04:48:37 +0000 (21:48 -0700)
Smatch doesn't like when we use "%02X" to print char types because,
what about if it's a negative?

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f34v7.c

index 10c0d11b72c992e248f84418dd6d1e98cf1b10fe..ae2db1c3aebfdbd345afcd2aaa3da560e1b2ce41 100644 (file)
@@ -518,7 +518,7 @@ static int rmi_f34v7_read_queries(struct f34_data *f34)
                        query_1_7.partition_support[1] & HAS_GUEST_CODE;
 
        if (query_0 & HAS_CONFIG_ID) {
-               char f34_ctrl[CONFIG_ID_SIZE];
+               u8 f34_ctrl[CONFIG_ID_SIZE];
                int i = 0;
                u8 *p = f34->configuration_id;
                *p = '\0';