diff options
| author | 2024-08-16 16:58:59 +0300 | |
|---|---|---|
| committer | 2024-08-23 18:47:39 +0800 | |
| commit | fb9804096bb3508e33ade5a72f2332080cf1324b (patch) | |
| tree | f8bf61738c23f29d2a9da6231b2f6c0a12ded479 /drivers/platform/surface/aggregator/controller.c | |
| parent | usb: typec: ucsi: Call CANCEL from single location (diff) | |
| download | wireguard-linux-fb9804096bb3508e33ade5a72f2332080cf1324b.tar.xz wireguard-linux-fb9804096bb3508e33ade5a72f2332080cf1324b.zip | |
usb: typec: ucsi: Remove useless error check from ucsi_read_error()
If the GET_ERROR_STATUS command fails, ucsi_read_error() can
not reach the condition where the CCI error bit is checked,
because ucsi_run_command() has already checked that bit and
returned an error.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240816135859.3499351-7-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions
