From 7b2cd36110a6be38cf37d619c4bce021d81caa99 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Mon, 28 Mar 2022 13:15:59 +0300 Subject: [PATCH] scst_lib: Rename obsolete goto label The use of set_fs() for scst_write_file_transactional() was dropped in 94018a42 ("scst: Use kernel_{read,write}() instead of scst_{read,write}()"). Hence rename the goto label associated with this functionality. --- scst/src/scst_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 565991286..82186f691 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -15064,7 +15064,7 @@ int scst_write_file_transactional(const char *name, const char *name1, res = PTR_ERR(file); PRINT_ERROR("Unable to (re)create file '%s' - error %d", name, res); - goto out_set_fs; + goto out_remove_file; } TRACE_DBG("Writing file '%s'", name); @@ -15100,7 +15100,7 @@ int scst_write_file_transactional(const char *name, const char *name1, filp_close(file, NULL); -out_set_fs: +out_remove_file: if (res == 0) scst_remove_file(name1); else @@ -15117,7 +15117,7 @@ write_error_close: filp_close(file, NULL); if (res > 0) res = -EIO; - goto out_set_fs; + goto out_remove_file; } EXPORT_SYMBOL_GPL(scst_write_file_transactional);