2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00

staging: tidspbridge: remove trivial assert

The function dsp_deinit() always return true, so assert its output is
pointless. As consequence the variable were the returned value is stored, is
no longer needed.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Víctor Manuel Jáquez Leal 2012-01-31 00:12:22 +01:00 committed by Greg Kroah-Hartman
parent 0b86809a90
commit b8bfa4c57c

View File

@ -531,7 +531,6 @@ err1:
static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev)
{
dev_t devno;
bool ret;
int status = 0;
struct drv_data *drv_datap = dev_get_drvdata(bridge);
@ -551,9 +550,8 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev)
if (driver_context) {
/* Put the DSP in reset state */
ret = dsp_deinit(driver_context);
dsp_deinit(driver_context);
driver_context = 0;
DBC_ASSERT(ret == true);
}
func_cont: