Commit 6d3ca33
committed
nvme: constify variable in list_subsys
The compiler complains with
../nvme.c: In function ‘list_subsys’:
../nvme.c:2478:19: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
2478 | n = strrchr(devicename, 'n');
| ^
devicename is of type 'const char *' so the returning pointer is of
the same type. Thus constify the n variable.
Signed-off-by: Daniel Wagner <dwagner@suse.de>1 parent c506657 commit 6d3ca33
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2473 | 2473 | | |
2474 | 2474 | | |
2475 | 2475 | | |
2476 | | - | |
| 2476 | + | |
| 2477 | + | |
2477 | 2478 | | |
2478 | 2479 | | |
2479 | 2480 | | |
| |||
0 commit comments