ib_srpt: replace strnicmp with strncasecmp
[firefly-linux-kernel-4.4.55.git] / drivers / infiniband / ulp / srpt / ib_srpt.c
index d28a8c284da90d57092577f648964d7bdb5731d1..7206547c13ce0dc8dda59458658d843d64520327 100644 (file)
@@ -3574,7 +3574,7 @@ static int srpt_parse_i_port_id(u8 i_port_id[16], const char *name)
        int ret, rc;
 
        p = name;
-       if (strnicmp(p, "0x", 2) == 0)
+       if (strncasecmp(p, "0x", 2) == 0)
                p += 2;
        ret = -EINVAL;
        len = strlen(p);