From: Faisal Mukhtar <mukhtarfaisal03@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Faisal Mukhtar <mukhtarfaisal03@gmail.com>
Subject: [PATCH] staging: vme_user: Remove unnecessary parentheses
Date: Thu, 23 Jul 2026 20:24:17 +0500 [thread overview]
Message-ID: <20260723152417.475323-1-mukhtarfaisal03@gmail.com> (raw)
Fix style problems found by checkpatch.pl,
which are the unneeded parentheses inside if
statements in vme.c.
Signed-off-by: Faisal Mukhtar <mukhtarfaisal03@gmail.com>
---
drivers/staging/vme_user/vme.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/vme_user/vme.c b/drivers/staging/vme_user/vme.c
index b5c66b66ce32..68b5c4613724 100644
--- a/drivers/staging/vme_user/vme.c
+++ b/drivers/staging/vme_user/vme.c
@@ -1210,9 +1210,9 @@ void vme_bus_error_handler(struct vme_bridge *bridge,
u32 aspace = vme_get_aspace(am);
list_for_each_entry(handler, &bridge->vme_error_handlers, list) {
- if ((aspace == handler->aspace) &&
- (address >= handler->start) &&
- (address < handler->end)) {
+ if (aspace == handler->aspace &&
+ address >= handler->start &&
+ address < handler->end) {
if (!handler->num_errors)
handler->first_error = address;
if (handler->num_errors != UINT_MAX)
@@ -1299,7 +1299,7 @@ int vme_irq_request(struct vme_dev *vdev, int level, int statid,
return -EINVAL;
}
- if ((level < 1) || (level > 7)) {
+ if (level < 1 || level > 7) {
dev_err(bridge->parent, "Invalid interrupt level\n");
return -EINVAL;
}
@@ -1349,7 +1349,7 @@ void vme_irq_free(struct vme_dev *vdev, int level, int statid)
return;
}
- if ((level < 1) || (level > 7)) {
+ if (level < 1 || level > 7) {
dev_err(bridge->parent, "Invalid interrupt level\n");
return;
}
@@ -1397,7 +1397,7 @@ int vme_irq_generate(struct vme_dev *vdev, int level, int statid)
return -EINVAL;
}
- if ((level < 1) || (level > 7)) {
+ if (level < 1 || level > 7) {
dev_warn(bridge->parent, "Invalid interrupt level\n");
return -EINVAL;
}
--
2.53.0
next reply other threads:[~2026-07-23 15:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 15:24 Faisal Mukhtar [this message]
2026-07-28 7:18 ` Greg Kroah-Hartman
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=20260723152417.475323-1-mukhtarfaisal03@gmail.com \
--to=mukhtarfaisal03@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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®