Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306420
b: refs/heads/master
c: 0550b29
h: refs/heads/master
v: v3
  • Loading branch information
joseph daniel authored and Mauro Carvalho Chehab committed May 15, 2012
1 parent c9fb287 commit 14e69d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2b30e9068577e15e432974ddf0862315ec2069c
refs/heads/master: 0550b29464f1d43a690198a6a8e984ae788ba9fa
28 changes: 7 additions & 21 deletions trunk/drivers/staging/media/as102/as10x_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
int as10x_cmd_turn_on(struct as10x_bus_adapter_t *adap)
{
int error;
int error = AS10X_CMD_ERROR;
struct as10x_cmd_t *pcmd, *prsp;

ENTER();
Expand All @@ -54,8 +54,6 @@ int as10x_cmd_turn_on(struct as10x_bus_adapter_t *adap)
(uint8_t *) prsp,
sizeof(prsp->body.turn_on.rsp) +
HEADER_SIZE);
} else {
error = AS10X_CMD_ERROR;
}

if (error < 0)
Expand All @@ -77,7 +75,7 @@ int as10x_cmd_turn_on(struct as10x_bus_adapter_t *adap)
*/
int as10x_cmd_turn_off(struct as10x_bus_adapter_t *adap)
{
int error;
int error = AS10X_CMD_ERROR;
struct as10x_cmd_t *pcmd, *prsp;

ENTER();
Expand All @@ -99,8 +97,6 @@ int as10x_cmd_turn_off(struct as10x_bus_adapter_t *adap)
sizeof(pcmd->body.turn_off.req) + HEADER_SIZE,
(uint8_t *) prsp,
sizeof(prsp->body.turn_off.rsp) + HEADER_SIZE);
} else {
error = AS10X_CMD_ERROR;
}

if (error < 0)
Expand All @@ -124,7 +120,7 @@ int as10x_cmd_turn_off(struct as10x_bus_adapter_t *adap)
int as10x_cmd_set_tune(struct as10x_bus_adapter_t *adap,
struct as10x_tune_args *ptune)
{
int error;
int error = AS10X_CMD_ERROR;
struct as10x_cmd_t *preq, *prsp;

ENTER();
Expand Down Expand Up @@ -159,8 +155,6 @@ int as10x_cmd_set_tune(struct as10x_bus_adapter_t *adap,
(uint8_t *) prsp,
sizeof(prsp->body.set_tune.rsp)
+ HEADER_SIZE);
} else {
error = AS10X_CMD_ERROR;
}

if (error < 0)
Expand All @@ -184,7 +178,7 @@ int as10x_cmd_set_tune(struct as10x_bus_adapter_t *adap,
int as10x_cmd_get_tune_status(struct as10x_bus_adapter_t *adap,
struct as10x_tune_status *pstatus)
{
int error;
int error = AS10X_CMD_ERROR;
struct as10x_cmd_t *preq, *prsp;

ENTER();
Expand All @@ -208,8 +202,6 @@ int as10x_cmd_get_tune_status(struct as10x_bus_adapter_t *adap,
sizeof(preq->body.get_tune_status.req) + HEADER_SIZE,
(uint8_t *) prsp,
sizeof(prsp->body.get_tune_status.rsp) + HEADER_SIZE);
} else {
error = AS10X_CMD_ERROR;
}

if (error < 0)
Expand Down Expand Up @@ -241,7 +233,7 @@ int as10x_cmd_get_tune_status(struct as10x_bus_adapter_t *adap,
*/
int as10x_cmd_get_tps(struct as10x_bus_adapter_t *adap, struct as10x_tps *ptps)
{
int error;
int error = AS10X_CMD_ERROR;
struct as10x_cmd_t *pcmd, *prsp;

ENTER();
Expand All @@ -266,8 +258,6 @@ int as10x_cmd_get_tps(struct as10x_bus_adapter_t *adap, struct as10x_tps *ptps)
(uint8_t *) prsp,
sizeof(prsp->body.get_tps.rsp) +
HEADER_SIZE);
} else {
error = AS10X_CMD_ERROR;
}

if (error < 0)
Expand Down Expand Up @@ -305,7 +295,7 @@ int as10x_cmd_get_tps(struct as10x_bus_adapter_t *adap, struct as10x_tps *ptps)
int as10x_cmd_get_demod_stats(struct as10x_bus_adapter_t *adap,
struct as10x_demod_stats *pdemod_stats)
{
int error;
int error = AS10X_CMD_ERROR;
struct as10x_cmd_t *pcmd, *prsp;

ENTER();
Expand All @@ -330,8 +320,6 @@ int as10x_cmd_get_demod_stats(struct as10x_bus_adapter_t *adap,
(uint8_t *) prsp,
sizeof(prsp->body.get_demod_stats.rsp)
+ HEADER_SIZE);
} else {
error = AS10X_CMD_ERROR;
}

if (error < 0)
Expand Down Expand Up @@ -370,7 +358,7 @@ int as10x_cmd_get_demod_stats(struct as10x_bus_adapter_t *adap,
int as10x_cmd_get_impulse_resp(struct as10x_bus_adapter_t *adap,
uint8_t *is_ready)
{
int error;
int error = AS10X_CMD_ERROR;
struct as10x_cmd_t *pcmd, *prsp;

ENTER();
Expand All @@ -395,8 +383,6 @@ int as10x_cmd_get_impulse_resp(struct as10x_bus_adapter_t *adap,
(uint8_t *) prsp,
sizeof(prsp->body.get_impulse_rsp.rsp)
+ HEADER_SIZE);
} else {
error = AS10X_CMD_ERROR;
}

if (error < 0)
Expand Down

0 comments on commit 14e69d8

Please sign in to comment.