mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 11:23:09 -04:00
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: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
47bc169719
commit
9d2b75f696
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user