]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/rdma/ipath/ipath_file_ops.c
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / drivers / staging / rdma / ipath / ipath_file_ops.c
index c796a51faa9cbbbc992bd3cb355674b31d092ec3..13c3cd11ab92a5c610ef7a5e32795a0b0a0931c9 100644 (file)
@@ -905,7 +905,7 @@ static int ipath_create_user_egr(struct ipath_portdata *pd)
         * heavy filesystem activity makes these fail, and we can
         * use compound pages.
         */
-       gfp_flags = __GFP_WAIT | __GFP_IO | __GFP_COMP;
+       gfp_flags = __GFP_RECLAIM | __GFP_IO | __GFP_COMP;
 
        egrcnt = dd->ipath_rcvegrcnt;
        /* TID number offset for this port */
@@ -2046,7 +2046,6 @@ static void unlock_expected_tids(struct ipath_portdata *pd)
 
 static int ipath_close(struct inode *in, struct file *fp)
 {
-       int ret = 0;
        struct ipath_filedata *fd;
        struct ipath_portdata *pd;
        struct ipath_devdata *dd;
@@ -2158,7 +2157,7 @@ static int ipath_close(struct inode *in, struct file *fp)
 
 bail:
        kfree(fd);
-       return ret;
+       return 0;
 }
 
 static int ipath_port_info(struct ipath_portdata *pd, u16 subport,