public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next] scripts/sorttable: remove duplicate include in sorttable.c
@ 2021-08-06  7:29 cgel.zte
  2021-08-06 10:33 ` kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: cgel.zte @ 2021-08-06  7:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: yong.yiran, Zeal Robot

From: yong yiran <yong.yiran@zte.com.cn>

'sorttable.h' included in 'sorttable.c' is duplicated.
Remove all but the first include of sorttable.h from sorttable.c.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: yong yiran <yong.yiran@zte.com.cn>
---
 scripts/sorttable.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/sorttable.c b/scripts/sorttable.c
index 0ef3abfc4a51..cb080c71a66c 100644
--- a/scripts/sorttable.c
+++ b/scripts/sorttable.c
@@ -188,7 +188,6 @@ static inline unsigned int get_secindex(unsigned int shndx,
 /* 32 bit and 64 bit are very similar */
 #include "sorttable.h"
 #define SORTTABLE_64
-#include "sorttable.h"
 
 static int compare_relative_table(const void *a, const void *b)
 {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-06 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-06  7:29 [PATCH linux-next] scripts/sorttable: remove duplicate include in sorttable.c cgel.zte
2021-08-06 10:33 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox