summaryrefslogtreecommitdiff
path: root/extras/path_id
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-15 00:19:45 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-15 00:19:45 +0200
commit135f3e8d0b4b4968908421b677c9ef2ba860b71d (patch)
treed58306941908a33aee4fd364bee5d8efba88cf45 /extras/path_id
parent7459bcdc8d12fdb217efd4a27a509f9f87ec7b1e (diff)
fix more warnings
Diffstat (limited to 'extras/path_id')
-rw-r--r--extras/path_id/path_id.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c
index db13eeba27..518ec8b386 100644
--- a/extras/path_id/path_id.c
+++ b/extras/path_id/path_id.c
@@ -137,15 +137,13 @@ static struct udev_device *handle_scsi_iscsi(struct udev_device *parent, char **
/* find iscsi session */
transportdev = parent;
- while (1) {
+ for (;;) {
transportdev = udev_device_get_parent(transportdev);
if (transportdev == NULL)
return NULL;
if (strncmp(udev_device_get_sysname(transportdev), "session", 7) == 0)
break;
}
- if (transportdev == NULL)
- return NULL;
/* find iscsi session device */
sessiondev = udev_device_new_from_subsystem_sysname(udev, "iscsi_session", udev_device_get_sysname(transportdev));