mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
scst_local: Remove a superfluous if-test (merge r4485 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4705 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -574,11 +574,9 @@ static ssize_t scst_local_transport_id_store(struct kobject *kobj,
|
||||
|
||||
mutex_lock(&sess->tr_id_mutex);
|
||||
|
||||
if (sess->transport_id != NULL) {
|
||||
kfree(sess->transport_id);
|
||||
sess->transport_id = NULL;
|
||||
sess->transport_id_len = 0;
|
||||
}
|
||||
kfree(sess->transport_id);
|
||||
sess->transport_id = NULL;
|
||||
sess->transport_id_len = 0;
|
||||
|
||||
if (size == 0)
|
||||
goto out_res;
|
||||
|
||||
Reference in New Issue
Block a user