summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-05-06 15:12:02 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-10 13:49:12 +0300
commitabe7015a3630f80037d9e40347d31a8d1f95428a (patch)
tree8ac18f17d384965354e789fb4ffe0a639c5c1612 /drivers/base
parentae1b6b4c0a0c93a53cb897e54c84079a017cd9d0 (diff)
downloadlinux-abe7015a3630f80037d9e40347d31a8d1f95428a.tar.xz
serial: 8250_pnp: Simplify "line" related code
8250_pnp sets drvdata to line + 1 if the probe is successful. The users of drvdata are in remove, suspend and resume callbacks, none of which will be called if probe failed. The line acquired from drvdata can never be zero in those functions and the checks for that can be removed. Eliminate also +/-1 step because all users of line subtract 1 from the value. These might have been leftover from legacy PM callbacks that could be called without probe being successful. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20240506121202.11253-1-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions