Skip to contentSkip to conversation

Staging: crystalhd: crystalhd_cmds: fixed a brace issue

PATCH In review Gunnar Gudvardarson 2 participants 2 messages Aug 18, 2010 – Aug 31, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: crystalhd: crystalhd_cmds: fixed a brace issue

Fixed a brace issue.

Note: checkpatch was clean until i ran format-patch, which added 3 trailing whitespaces.

---
 drivers/staging/crystalhd/crystalhd_cmds.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/crystalhd/crystalhd_cmds.c +2 -2
index 1429608..d423775 100644
@@ -309,9 +309,9 @@ static enum BC_STATUS bc_cproc_download_fw(struct crystalhd_cmd *ctx,
 	sts = crystalhd_download_fw(ctx->adp, (uint8_t *)idata->add_cdata,
 				  idata->add_cdata_sz);
 
-	if (sts != BC_STS_SUCCESS) {
+	if (sts != BC_STS_SUCCESS)
 		BCMLOG_ERR("Firmware Download Failure!! - %d\n", sts);
-	} else
+	else
 		ctx->state |= BC_LINK_INIT;
 
 	return sts;
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 12 lines · Gunnar Gudvardarson

Fixed a brace issue.

---
 drivers/staging/crystalhd/crystalhd_cmds.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/crystalhd/crystalhd_cmds.c +0 -0
index 1429608..d423775 100644

drivers/staging/crystalhd/crystalhd_cmds.c static enum BC_STATUS bc_cproc_download_fw(struct crystalhd_cmd *ctx, · line 314

Quoted 8 lines
drivers/staging/crystalhd/crystalhd_cmds.c +2 -2
@@ -309,9 +309,9 @@ static enum BC_STATUS bc_cproc_download_fw(struct crystalhd_cmd *ctx,
 	sts = crystalhd_download_fw(ctx->adp, (uint8_t *)idata->add_cdata,
 				  idata->add_cdata_sz);
 
-	if (sts != BC_STS_SUCCESS) {
+	if (sts != BC_STS_SUCCESS)
 		BCMLOG_ERR("Firmware Download Failure!! - %d\n", sts);
-	} else
+	else

This breaks the build, are you sure you tested it after making the patch?

thanks,

greg k-h