From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Sergei Stepanenkov <sergei_stepanenkov@disroot.org>
Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
linux-staging@lists.linux.dev, andy@kernel.org, hansg@kernel.org,
mchehab@kernel.org, sakari.ailus@linux.intel.com,
gregkh@linuxfoundation.org, ~lkcamp/patches@lists.sr.ht,
koike@igalia.com
Subject: Re: [PATCH] staging: media: atomisp: move constant to the right side of comparisons
Date: Fri, 7 Aug 2026 02:06:23 +0300 [thread overview]
Message-ID: <anUTbyNk4H7Qet29@ashevche-desk.local> (raw)
In-Reply-To: <20260723155027.124722-1-sergei_stepanenkov@disroot.org>
On Thu, Jul 23, 2026 at 12:50:20PM -0300, Sergei Stepanenkov wrote:
> Fix all checkpatch warning occurences
> "WARNING: Comparisons should place the constant on the right side of
> the test" in folder drivers/staging/media/atomisp/pci
>
> Signed-off-by: Sergei Stepanenkov <sergei_stepanenkov@disroot.org>
> ---
> Hey, this is my first patch, I appreciate any feedback, thanks!
Right.
Please, read lore.kernel.org linux-media@ archives against this driver to
understand what to do with this patch.
Also, if you are in a group that is mentored, tell to the mentors to stop
looking into this driver by a newbie. This driver has much more urgent tasks
to do and it's not trivial, it also requires a real HW to be at hand to test.
...
> - if (0 != ia_css_pipe_get_info(asd->stream_env[stream_index]
> - .pipes[pipe_index], &info)) {
> + if (ia_css_pipe_get_info(asd->stream_env[stream_index]
> + .pipes[pipe_index], &info) != 0) {
The style is still wrong.
> dev_dbg(isp->dev, "ia_css_pipe_get_info FAILED");
> return -EINVAL;
> }
The above most likely already or should return a Linux error code in which case
the whole thing should be refactored,
ret = ia_css_pipe_get_info(asd->stream_env[stream_index].pipes[pipe_index], &info);
if (ret)
dev_dbg(isp->dev, "ia_css_pipe_get_info FAILED");
return ret;
}
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2026-08-06 23:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 15:50 Sergei Stepanenkov
2026-08-06 23:06 ` Andy Shevchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=anUTbyNk4H7Qet29@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=koike@igalia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=sergei_stepanenkov@disroot.org \
--cc=~lkcamp/patches@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®