Skip to content

Commit 8aafa04

Browse files
committed
address last warnings as seen by gcc7
1 parent 11a627c commit 8aafa04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/others/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static inline void get_cpumap(int node, unsigned long * node_info) {
237237
if(k!=0){
238238
name[k]='\0';
239239
affinity[count++] = strtoul(name, &dummy, 16);
240-
k=0;
240+
// k=0;
241241
}
242242
// 0-63bit -> node_info[0], 64-128bit -> node_info[1] ....
243243
// revert the sequence
@@ -293,7 +293,7 @@ static inline void get_share(int cpu, int level, unsigned long * share) {
293293
if(k!=0){
294294
name[k]='\0';
295295
affinity[count++] = strtoul(name, &dummy, 16);
296-
k=0;
296+
// k=0;
297297
}
298298
// 0-63bit -> node_info[0], 64-128bit -> node_info[1] ....
299299
// revert the sequence

0 commit comments

Comments
 (0)