]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
media: staging: media: atomisp: Remove unnecessary parentheses from conditional statement
authorJonathan Bergh <bergh.jonathan@gmail.com>
Mon, 26 Feb 2024 19:40:21 +0000 (19:40 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 Apr 2024 09:16:55 +0000 (10:16 +0100)
This patch makes the following changes:
 * Removes additional, unnecessary parentheses from a conditional "if"
   statement

Link: https://lore.kernel.org/r/20240226194023.69070-5-bergh.jonathan@gmail.com
Signed-off-by: Jonathan Bergh <bergh.jonathan@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_sp.c

index 273955f5128d0df562a465b087381ae9c920e9b6..aaa84b5d46cbf1d7fddb25f8aa33e78fdf4975d3 100644 (file)
@@ -420,7 +420,7 @@ sh_css_copy_buffer_attr_to_spbuffer(struct ia_css_buffer_sp *dest_buf,
                   lines below. In order to satisfy KW an additional if
                   has been added. This one will always yield true.
                 */
-               if ((queue_id < SH_CSS_MAX_NUM_QUEUES))
+               if (queue_id < SH_CSS_MAX_NUM_QUEUES)
                        dest_buf->buf_src.queue_id = queue_id;
        } else {
                assert(xmem_addr != mmgr_EXCEPTION);