Comment has 'then' repeated twice. Let's clean it up.
Use unsigned int to maintain naming consistency.
Signed-off-by: Nigel Christian <nigel.l.christian@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
        /*
         * If we are unable to get an OK or a NACK after max_retries attempts
         * (and note that each attempt already consists of four polls), then
-        * then we assume that something is really weird and that it is not a
+        * we assume that something is really weird and that it is not a
         * good idea to try and claim this logical address.
         */
        if (i == max_retries)
                const u8 feature_sz = ARRAY_SIZE(log_addrs->features[0]);
                u8 *features = log_addrs->features[i];
                bool op_is_dev_features = false;
-               unsigned j;
+               unsigned int j;
 
                log_addrs->log_addr[i] = CEC_LOG_ADDR_INVALID;
                if (log_addrs->log_addr_type[i] > CEC_LOG_ADDR_TYPE_UNREGISTERED) {