From: Ameen Ali <ameenali023@gmail.com>
To: ason.wessel@windriver.com
Cc: linux-kernel@vger.kernel.org, Ameen Ali <ameenali023@gmail.com>
Subject: [PATCH 8/8] kdb_bp.c:42: pointless test
Date: Fri, 13 Mar 2015 15:51:59 +0200 [thread overview]
Message-ID: <1426254719-5274-1-git-send-email-ameenali023@gmail.com> (raw)
Checking if unsigned variable 'bp_type' is less than zero.
Signed-off-by : <AmeenAli023@gmail.com>
---
kernel/debug/kdb/kdb_bp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/debug/kdb/kdb_bp.c b/kernel/debug/kdb/kdb_bp.c
index e1dbf4a..7ad82e7 100644
--- a/kernel/debug/kdb/kdb_bp.c
+++ b/kernel/debug/kdb/kdb_bp.c
@@ -39,7 +39,7 @@ static char *kdb_rwtypes[] = {
static char *kdb_bptype(kdb_bp_t *bp)
{
- if (bp->bp_type < 0 || bp->bp_type > 4)
+ if (bp->bp_type > 4)
return "";
return kdb_rwtypes[bp->bp_type];
--
2.1.0
reply other threads:[~2015-03-13 13:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1426254719-5274-1-git-send-email-ameenali023@gmail.com \
--to=ameenali023@gmail.com \
--cc=ason.wessel@windriver.com \
--cc=linux-kernel@vger.kernel.org \
/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®