Powered by Linux
[PATCH] direct_return_instead_of_goto: Delete duplicate conditions — Semantic Matching Tool

[PATCH] direct_return_instead_of_goto: Delete duplicate conditions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@xxxxxxxxxx>
---
 check_direct_return_instead_of_goto.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/check_direct_return_instead_of_goto.c b/check_direct_return_instead_of_goto.c
index 90e5aed6..ff9c3c44 100644
--- a/check_direct_return_instead_of_goto.c
+++ b/check_direct_return_instead_of_goto.c
@@ -82,7 +82,6 @@ static bool is_printk_stmt(struct statement *stmt)
 	if (strcmp(str, "dev_err") == 0 ||
 	    strcmp(str, "dev_info") == 0 ||
 	    strcmp(str, "dev_warn") == 0 ||
-	    strcmp(str, "dev_warn") == 0 ||
 	    strcmp(str, "dev_notice") == 0 ||
 	    strcmp(str, "dev_dbg") == 0)
 		return true;
@@ -90,7 +89,6 @@ static bool is_printk_stmt(struct statement *stmt)
 	if (strcmp(str, "pr_err") == 0 ||
 	    strcmp(str, "pr_info") == 0 ||
 	    strcmp(str, "pr_warn") == 0 ||
-	    strcmp(str, "pr_warn") == 0 ||
 	    strcmp(str, "pr_notice") == 0 ||
 	    strcmp(str, "pr_debug") == 0)
 		return true;
-- 
2.38.1




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux