]> err.no Git - linux-2.6/blobdiff - fs/cifs/cifs_unicode.c
[PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers
[linux-2.6] / fs / cifs / cifs_unicode.c
index a17adf4cb9babbfbcab8d7eab4eeddd89a079755..99a096d3f84d679d668807d5081baf4beeabc95f 100644 (file)
@@ -76,8 +76,8 @@ cifs_strtoUCS(wchar_t * to, const char *from, int len,
                                charlen));
                        to[i] = cpu_to_le16(0x003f);    /* a question mark */
                        charlen = 1;
-               }
-               to[i] = cpu_to_le16(to[i]);
+               } else 
+                       to[i] = cpu_to_le16(to[i]);
 
        }