diff options
| author | Andy Shevchenko <[email protected]> | 2024-10-25 14:26:34 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2024-10-25 20:52:45 +0000 |
| commit | fdb62922ae89c17963f80abdd14b4d9f053bc962 (patch) | |
| tree | 74cf92263d869880c74f4fc08c58cd71aadd243d /net/unix/af_unix.c | |
| parent | dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3 (diff) | |
| download | kernel-fdb62922ae89c17963f80abdd14b4d9f053bc962.tar.gz kernel-fdb62922ae89c17963f80abdd14b4d9f053bc962.zip | |
pwm: core: use device_match_name() instead of strcmp(dev_name(...
Use the dedicated helper for comparing device names against strings.
Note, the current code has a check for the dev_name() against NULL.
With the current implementations of the device_add() and dev_set_name()
it most likely a theoretical assumption that that might happen, while
I don't see how. Hence, that check has simply been removed.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
