mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 8/8] kdb_bp.c:42: pointless test
@ 2015-03-13 13:51 Ameen Ali
  0 siblings, 0 replies; only message in thread
From: Ameen Ali @ 2015-03-13 13:51 UTC (permalink / raw)
  To: ason.wessel; +Cc: linux-kernel, Ameen Ali

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-13 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 13:51 [PATCH 8/8] kdb_bp.c:42: pointless test Ameen Ali

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®