Repository navigation
Commit d84f18d
drivers: base: swnode: remove need for a temporary string for the node name
Currently the node name is being formatting into a temporary string
node_name, however, kobject_init_and_add allows one to format up
a node name, so use that instead. This removes the need for the
node_name string and also cleans up the following warning:
Fixes clang warning:
warning: format string is not a string literal (potentially
insecure) [-Wformat-security]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent caf35cd commit d84f18d
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
| |||
576 | 575 | | |
577 | 576 | | |
578 | 577 | | |
579 | | - | |
580 | | - | |
581 | 578 | | |
582 | 579 | | |
583 | 580 | | |
| |||
590 | 587 | | |
591 | 588 | | |
592 | 589 | | |
593 | | - | |
| 590 | + | |
594 | 591 | | |
595 | 592 | | |
596 | 593 | | |
| |||
0 commit comments