diff options
author | dmitry_yus <dmitry_yus@d7303112-9cec-0310-bdd2-e83a94d6c2b6> | 2005-05-21 00:49:45 +0000 |
---|---|---|
committer | dmitry_yus <dmitry_yus@d7303112-9cec-0310-bdd2-e83a94d6c2b6> | 2005-05-21 00:49:45 +0000 |
commit | 3987ad8d92ef7347cf48451d1358f62ac2363bb0 (patch) | |
tree | 8c53e8011fbb7158d97e715011437205be106f14 | |
parent | 6d1ef6da1e870a33604b5f9f53e20f5c15f333e7 (diff) | |
download | open-iscsi-3987ad8d92ef7347cf48451d1358f62ac2363bb0.tar.gz |
Mike: fixed some weird braces where locks would never get dropped if
run and tabing
git-svn-id: svn://svn.berlios.de/open-iscsi@322 d7303112-9cec-0310-bdd2-e83a94d6c2b6
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | kernel/scsi_transport_iscsi.c | 6 |
2 files changed, 3 insertions, 5 deletions
@@ -16,5 +16,5 @@ all: @echo Read README file for detailed information. clean: - make -C usr + make -C usr clean make -C kernel clean diff --git a/kernel/scsi_transport_iscsi.c b/kernel/scsi_transport_iscsi.c index fb38a2e..f885e7d 100644 --- a/kernel/scsi_transport_iscsi.c +++ b/kernel/scsi_transport_iscsi.c @@ -930,15 +930,13 @@ show_session_int_param_##param(struct class_device *cdev, char *buf) \ unsigned long flags; \ \ spin_lock_irqsave(&connlock, flags); \ - if (!list_empty(&session->connections)) { \ + if (!list_empty(&session->connections)) \ conn = list_entry(session->connections.next, \ struct iscsi_if_conn, session_list); \ spin_unlock_irqrestore(&connlock, flags); \ \ if (conn && (priv->param_mask & (1 << param))) \ - priv->iscsi_transport->get_param(conn->connh, \ - param, &value);\ - } \ + priv->iscsi_transport->get_param(conn->connh, param, &value);\ return snprintf(buf, 20, format"\n", value); \ } |