aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> 2024-05-06 15:12:02 +0300
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2024-05-10 11:49:12 +0100
commitabe7015a3630f80037d9e40347d31a8d1f95428a (patch)
tree8ac18f17d384965354e789fb4ffe0a639c5c1612 /arch
parentserial: sh-sci: simplify locking when re-issuing RXDMA fails (diff)
downloadlinux-abe7015a3630f80037d9e40347d31a8d1f95428a.tar.gz
linux-abe7015a3630f80037d9e40347d31a8d1f95428a.tar.bz2
linux-abe7015a3630f80037d9e40347d31a8d1f95428a.zip
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 'arch')
0 files changed, 0 insertions, 0 deletions