All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] staging: vchiq_dev: remove braces from if block
@ 2021-09-12 13:37 ` Gaston Gonzalez
  0 siblings, 0 replies; 4+ messages in thread
From: Gaston Gonzalez @ 2021-09-12 13:37 UTC (permalink / raw)
  To: linux-staging
  Cc: gregkh, nsaenz, stefan.wahren, arnd, dan.carpenter, ojaswin98,
	phil, bcm-kernel-feedback-list, linux-rpi-kernel,
	linux-arm-kernel, linux-kernel, gascoar

Remove unnecessary braces from if block.

Reported by checkpatch.pl

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c
index 788fa5a987a3..c990d5d7bfb5 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c
@@ -447,9 +447,8 @@ static int vchiq_ioc_await_completion(struct vchiq_instance *instance,
 	DEBUG_INITIALISE(g_state.local)
 
 	DEBUG_TRACE(AWAIT_COMPLETION_LINE);
-	if (!instance->connected) {
+	if (!instance->connected)
 		return -ENOTCONN;
-	}
 
 	mutex_lock(&instance->completion_mutex);
 
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-12 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-12 13:37 [PATCH 1/2] staging: vchiq_dev: remove braces from if block Gaston Gonzalez
2021-09-12 13:37 ` Gaston Gonzalez
2021-09-12 13:37 ` [PATCH 2/2] staging: vchiq_dev: cleanup code alignment issues Gaston Gonzalez
2021-09-12 13:37   ` Gaston Gonzalez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.