diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-15 00:19:45 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-04-15 00:19:45 +0200 |
commit | 135f3e8d0b4b4968908421b677c9ef2ba860b71d (patch) | |
tree | d58306941908a33aee4fd364bee5d8efba88cf45 /extras/path_id | |
parent | 7459bcdc8d12fdb217efd4a27a509f9f87ec7b1e (diff) |
fix more warnings
Diffstat (limited to 'extras/path_id')
-rw-r--r-- | extras/path_id/path_id.c | 4 |
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)); |