Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d2b75f6 authored by Ira Weiny's avatar Ira Weiny Committed by Greg Kroah-Hartman
Browse files

staging/rdma/hfi1: diag.c add missing braces



Else statements should continue using braces even if there is only 1 line in
the block.  Found by checkpatch --strict

Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 47bc1697
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -954,12 +954,14 @@ static ssize_t hfi1_snoop_read(struct file *fp, char __user *data,
				ret = -EFAULT;
			else
				ret = packet->total_len;
		} else
		} else {
			ret = -EINVAL;
		}

		kfree(packet);
	} else
	} else {
		spin_unlock_irqrestore(&dd->hfi1_snoop.snoop_lock, flags);
	}

	return ret;
}