aboutsummaryrefslogtreecommitdiff
path: root/drivers/accel
diff options
context:
space:
mode:
authorGravatar Malkoot Khan <engr.mkhan1990@gmail.com> 2023-12-28 21:08:58 +0000
committerGravatar Oded Gabbay <ogabbay@kernel.org> 2024-02-26 09:30:40 +0200
commit8a5be2b62ba114ab11bf5c26282990c042df4409 (patch)
tree8fdfcf7875817afc4f35fe38b87030e5e765916d /drivers/accel
parentaccel/habanalabs/gaudi2: move HMMU page tables to device memory (diff)
downloadlinux-8a5be2b62ba114ab11bf5c26282990c042df4409.tar.gz
linux-8a5be2b62ba114ab11bf5c26282990c042df4409.tar.bz2
linux-8a5be2b62ba114ab11bf5c26282990c042df4409.zip
accel/habanalabs: Remove unnecessary braces from if statement
The coding style in the Linux kernel prefers not to use braces for single-statement if conditions. This patch removes the unnecessary braces from an if statement in the file drivers/accel/habanalabs/common/command_submission.c, which also resolves a coding style warning. Signed-off-by: Malkoot Khan <engr.mkhan1990@gmail.com> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/accel')
-rw-r--r--drivers/accel/habanalabs/common/command_submission.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/accel/habanalabs/common/command_submission.c b/drivers/accel/habanalabs/common/command_submission.c
index 3aa6eeef443b..39e23d625a3c 100644
--- a/drivers/accel/habanalabs/common/command_submission.c
+++ b/drivers/accel/habanalabs/common/command_submission.c
@@ -1360,9 +1360,8 @@ static int hl_cs_sanity_checks(struct hl_fpriv *hpriv, union hl_cs_args *args)
return -EINVAL;
}
- if (!hl_device_operational(hdev, &status)) {
+ if (!hl_device_operational(hdev, &status))
return -EBUSY;
- }
if ((args->in.cs_flags & HL_CS_FLAGS_STAGED_SUBMISSION) &&
!hdev->supports_staged_submission) {