staging: tidspbridge: remove trivial assert
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 30 Jan 2012 23:12:22 +0000 (00:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 17:32:09 +0000 (09:32 -0800)
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>
drivers/staging/tidspbridge/rmgr/drv_interface.c

index 4531920d88bb3fa4b7f05f698b9cb7fd9e9790ee..97c40ffd844ac916d2e96c12ca20e13d6ae1d98c 100644 (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: