diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2019-09-26 23:33:43 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:41:01 +0200 |
| commit | fd21ca6097db9c4663e4450659f10085ec1e8102 (patch) | |
| tree | c6aa16e837909a4a0ba9a1371bb6dee4d1fa0200 /kernel/sysctl_binary.c | |
| parent | 547b4a3bcc13f1167e81d8b8318da8211623ae04 (diff) | |
thermal: qpnp-temp-alarm: Remove useless NULL check in qpnp_tm_probe
Clang warns:
../drivers/thermal/qpnp-temp-alarm.c:547:24: warning: address of
'pdev->dev' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (!pdev || !(&pdev->dev) || !pdev->dev.of_node) {
~ ~~~~~~^~~
1 warning generated.
Fixes: 77dd35597191 ("qpnp: Add snapshot of some qpnp, regulator and charger drivers")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
