linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / isdn / pcbit / drv.c
index 6ead5e1..94f2148 100644 (file)
@@ -725,27 +725,23 @@ static int pcbit_stat(u_char __user *buf, int len, int driver, int channel)
 
        if (stat_st < stat_end)
        {
-               if (copy_to_user(buf, statbuf + stat_st, len))
-                       return -EFAULT;
+               copy_to_user(buf, statbuf + stat_st, len);
                stat_st += len;    
        }
        else
        {
                if (len > STATBUF_LEN - stat_st)
                {
-                       if (copy_to_user(buf, statbuf + stat_st,
-                                      STATBUF_LEN - stat_st))
-                               return -EFAULT;
-                       if (copy_to_user(buf, statbuf,
-                                      len - (STATBUF_LEN - stat_st)))
-                               return -EFAULT;
+                       copy_to_user(buf, statbuf + stat_st, 
+                                      STATBUF_LEN - stat_st);
+                       copy_to_user(buf, statbuf, 
+                                      len - (STATBUF_LEN - stat_st));
 
                        stat_st = len - (STATBUF_LEN - stat_st);
                }
                else
                {
-                       if (copy_to_user(buf, statbuf + stat_st, len))
-                               return -EFAULT;
+                       copy_to_user(buf, statbuf + stat_st, len);
 
                        stat_st += len;