]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - ipc/util.c
ahci: redo stopping DMA engines on empty ports
[karo-tx-linux.git] / ipc / util.c
index 79ce84e890f72b153ca4f77ee7abeec3a6aed496..69a0cc13d9669847cce05fd67fc2203ffdeacb9e 100644 (file)
@@ -124,8 +124,8 @@ void ipc_init_ids(struct ipc_ids *ids)
        ids->seq = 0;
        {
                int seq_limit = INT_MAX/SEQ_MULTIPLIER;
-               if (seq_limit > USHORT_MAX)
-                       ids->seq_max = USHORT_MAX;
+               if (seq_limit > USHRT_MAX)
+                       ids->seq_max = USHRT_MAX;
                 else
                        ids->seq_max = seq_limit;
        }