Whamcloud - gitweb
- fixed a typo.
authorisaac <isaac>
Mon, 18 Jun 2007 17:45:17 +0000 (17:45 +0000)
committerisaac <isaac>
Mon, 18 Jun 2007 17:45:17 +0000 (17:45 +0000)
lnet/klnds/viblnd/viblnd.c

index 0d738a1..10774a4 100644 (file)
@@ -1719,7 +1719,7 @@ kibnal_startup (lnet_ni_t *ni)
         /* Find IP address from <ipif base name><hca number> */
         snprintf(ipif_name, sizeof(ipif_name), "%s%d",
                  *kibnal_tunables.kib_ipif_basename, devno);
-        if (strlen(ipif_name) == sizeof(ipif_name - 1)) {
+        if (strlen(ipif_name) == sizeof(ipif_name) - 1) {
                 CERROR("IPoIB interface name %s truncated\n", ipif_name);
                 return -EINVAL;
         }