[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VdZLdJS2SLijO+Ff-8OM+fBvS-R1er5ByYuw38qrRXRwA@mail.gmail.com>
Date: Thu, 4 Nov 2021 12:43:23 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: davidcomponentone@...il.com
Cc: Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>,
Arnd Bergmann <arnd@...db.de>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Julia Lawall <Julia.Lawall@...ia.fr>,
Yang Guang <yang.guang5@....com.cn>,
Linux Media Mailing List <linux-media@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] media: use swap() to make code cleaner
On Wed, Nov 3, 2021 at 10:34 AM <davidcomponentone@...il.com> wrote:
> Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
> opencoding it.
Same comments as per all your valuable contributions: just think more
about the code that you are dealing with!
> if (dev->fmt->uvswap) {
> - tmp = base2;
> - base2 = base3;
> - base3 = tmp;
> + swap(base2, base3);
> }
Have you run checkpatch? What did it say?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists