diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2024-02-29 12:12:58 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-05 14:28:02 +0000 |
| commit | d6543805a8ad6ffcddf5ffdfb3b27dcee3806474 (patch) | |
| tree | be788b5b90e0c5af5a17038b806bea49611ff433 /tools/perf/scripts/python | |
| parent | Merge tag 'iio-for-6.9b' of https://git.kernel.org/pub/scm/linux/kernel/git/j... (diff) | |
| download | linux-d6543805a8ad6ffcddf5ffdfb3b27dcee3806474.tar.gz linux-d6543805a8ad6ffcddf5ffdfb3b27dcee3806474.zip | |
mei: gsc: remove unnecessary NULL pointer checks
The .remove() and power management callbacks are never called unless
.probe() has already returned success, which means it has set drvdata to a
non-NULL pointer, so "dev" can never be NULL in the other callbacks.
Remove the unnecessary checks.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20240229181300.352077-2-helgaas@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
