diff options
author | 2012-02-07 00:39:34 +0100 | |
---|---|---|
committer | 2012-02-09 09:38:18 -0800 | |
commit | 276cc746d58b73aa4e046745441b8cf56858f9ef (patch) | |
tree | 775c713fb3153e11bc17af94b1614b9fc3b5843d /drivers/staging/tidspbridge/include | |
parent | staging: tidspbridge: Rename module from bridgedriver to tidspbridge (diff) | |
download | linux-dev-276cc746d58b73aa4e046745441b8cf56858f9ef.tar.xz linux-dev-276cc746d58b73aa4e046745441b8cf56858f9ef.zip |
staging: tidspbridge: remove DBC_ENSURE and DBC_REQUIRED
The kernel does not use a "Design by Contract" approach, and it is only
activated in the module if CONFIG_TIDSPBRDIGE_DEBUG is enabled, so they are
executed rarely. It is better to remove them: less code to maintain.
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/tidspbridge/include')
-rw-r--r-- | drivers/staging/tidspbridge/include/dspbridge/dbc.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbc.h b/drivers/staging/tidspbridge/include/dspbridge/dbc.h index 463760f499a4..dc88f34f1663 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dbc.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dbc.h @@ -32,15 +32,8 @@ if (!(exp)) \ pr_err("%s, line %d: Assertion (" #exp ") failed.\n", \ __FILE__, __LINE__) -#define DBC_REQUIRE DBC_ASSERT /* Function Precondition. */ -#define DBC_ENSURE DBC_ASSERT /* Function Postcondition. */ - #else - #define DBC_ASSERT(exp) {} -#define DBC_REQUIRE(exp) {} -#define DBC_ENSURE(exp) {} - #endif /* DEBUG */ #endif /* DBC_ */ |