OSDN Git Service

staging/rdma/hfi1: diag.c fix logical continuations
authorIra Weiny <ira.weiny@intel.com>
Wed, 2 Dec 2015 05:43:28 +0000 (00:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:53:37 +0000 (13:53 -0800)
Place logical operators at the end of the previous line when using a multi-line
statement.  Found by checkpatch --strict

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/diag.c

index 06c5cc6..9436840 100644 (file)
@@ -538,9 +538,9 @@ retry:
                 * NOTE: PRC_FILL_ERR is at best informational and cannot
                 * be depended on.
                 */
-               if (!ret && (((wait->code & PRC_STATUS_ERR)
-                               || (wait->code & PRC_FILL_ERR)
-                               || (wait->code & PRC_SC_DISABLE))))
+               if (!ret && (((wait->code & PRC_STATUS_ERR) ||
+                             (wait->code & PRC_FILL_ERR) ||
+                             (wait->code & PRC_SC_DISABLE))))
                        ret = -EIO;
 
                put_diagpkt_wait(wait); /* finished with the structure */