diff options
author | Ricardo B. Marliere <[email protected]> | 2024-03-05 08:25:23 -0300 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2024-03-13 09:23:49 +0100 |
commit | c8fba0c11f180418c9e4e89353c7f29d7c9e1915 (patch) | |
tree | 0fbf0b9913d9e89cb577d7d8171f30212f373940 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 520776557baae85f671a5cc324c27e3226f5ef81 (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 <[email protected]>
Signed-off-by: "Ricardo B. Marliere" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions