diff options
| author | 2024-03-05 08:25:23 -0300 | |
|---|---|---|
| committer | 2024-03-13 09:23:49 +0100 | |
| commit | c8fba0c11f180418c9e4e89353c7f29d7c9e1915 (patch) | |
| tree | 0fbf0b9913d9e89cb577d7d8171f30212f373940 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | s390/tape: make tape_class constant (diff) | |
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 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
