Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206026
b: refs/heads/master
c: 82f575e
h: refs/heads/master
v: v3
  • Loading branch information
Ernesto Ramos authored and Greg Kroah-Hartman committed Jul 28, 2010
1 parent 6d0cee4 commit 06d745b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: b66e0986f900db194f637149e68c00345863195b
refs/heads/master: 82f575e5bb27ca30e3e27b537228610cb7ee26c6
13 changes: 6 additions & 7 deletions trunk/drivers/staging/tidspbridge/services/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int cfg_get_dev_object(struct cfg_devnode *dev_node_obj,
"TIOMAP1510")))
*value = (u32)drv_datap->dev_object;
}
if (DSP_FAILED(status))
if (status)
pr_err("%s: Failed, status 0x%x\n", __func__, status);
return status;
}
Expand Down Expand Up @@ -130,7 +130,7 @@ int cfg_get_exec_file(struct cfg_devnode *dev_node_obj, u32 buf_size,
if (!status && drv_datap->base_img)
strcpy(str_exec_file, drv_datap->base_img);

if (DSP_FAILED(status))
if (status)
pr_err("%s: Failed, status 0x%x\n", __func__, status);
DBC_ENSURE(((status == 0) &&
(strlen(str_exec_file) <= buf_size))
Expand Down Expand Up @@ -174,12 +174,11 @@ int cfg_get_object(u32 *value, u8 dw_type)
default:
break;
}
if (DSP_FAILED(status)) {
if (status) {
*value = 0;
pr_err("%s: Failed, status 0x%x\n", __func__, status);
}
DBC_ENSURE((!status && *value != 0) ||
(DSP_FAILED(status) && *value == 0));
DBC_ENSURE((!status && *value != 0) || (status && *value == 0));
return status;
}

Expand Down Expand Up @@ -217,7 +216,7 @@ int cfg_set_dev_object(struct cfg_devnode *dev_node_obj, u32 value)
if (!(strcmp((char *)dev_node_obj, "TIOMAP1510")))
drv_datap->dev_object = (void *) value;
}
if (DSP_FAILED(status))
if (status)
pr_err("%s: Failed, status 0x%x\n", __func__, status);

return status;
Expand Down Expand Up @@ -248,7 +247,7 @@ int cfg_set_object(u32 value, u8 dw_type)
default:
break;
}
if (DSP_FAILED(status))
if (status)
pr_err("%s: Failed, status 0x%x\n", __func__, status);
return status;
}

0 comments on commit 06d745b

Please sign in to comment.