mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
Cleanup: loop_id_2100 is 2100/2200 specific
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -417,14 +417,6 @@ next:
|
||||
for (i = 0; (i < entries) && (size < max_size); ++i) {
|
||||
gid = (struct gid_list_info *)id_iter;
|
||||
if (IS_QLA2100(ha) || IS_QLA2200(ha)) {
|
||||
size += scnprintf(buffer+size, max_size-size,
|
||||
"%02x %02x%02x%02x\n",
|
||||
gid->loop_id_2100,
|
||||
gid->domain,
|
||||
gid->area,
|
||||
gid->al_pa);
|
||||
|
||||
} else {
|
||||
size += scnprintf(buffer+size, max_size-size,
|
||||
"%04x %02x%02x%02x %02x\n",
|
||||
le16_to_cpu(gid->loop_id),
|
||||
@@ -432,6 +424,13 @@ next:
|
||||
gid->area,
|
||||
gid->al_pa,
|
||||
gid->loop_id_2100);
|
||||
} else {
|
||||
size += scnprintf(buffer+size, max_size-size,
|
||||
"%02x %02x%02x%02x\n",
|
||||
gid->loop_id_2100,
|
||||
gid->domain,
|
||||
gid->area,
|
||||
gid->al_pa);
|
||||
|
||||
}
|
||||
id_iter += ha->gid_list_info_size;
|
||||
|
||||
Reference in New Issue
Block a user