diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-05 14:25:23 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-03-13 11:23:49 +0300 |
commit | c8fba0c11f180418c9e4e89353c7f29d7c9e1915 (patch) | |
tree | 0fbf0b9913d9e89cb577d7d8171f30212f373940 /drivers/s390/cio | |
parent | 520776557baae85f671a5cc324c27e3226f5ef81 (diff) | |
download | linux-c8fba0c11f180418c9e4e89353c7f29d7c9e1915.tar.xz |
s390/raw3270: improve raw3270_init() readability
Instead of checking if rc is 0, check whether it is non-zero and return
early if so. The call to class_create() can fail, so add a check to it and
move it out of the mutex region.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240305-class_cleanup-s390-v1-5-c4ff1ec49ffd@marliere.net
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390/cio')
0 files changed, 0 insertions, 0 deletions