[PATCH v4] staging: nvec: Avoid the use of BUG_ON

2016-02-24 Thread Laura Garcia Liebana
Prevent a kernel panic by avoiding the use of the BUG_ON macro. Checkpatch detected this issue. The BUG_ON macro is not needed as such cases shouldn't happen and they were introduced for debugging purposes. Signed-off-by: Laura Garcia Liebana <nev...@gmail.com> --- Changes

[PATCH v3] staging: nvec: Avoid the use of BUG_ON

2016-02-24 Thread Laura Garcia Liebana
Prevent a kernel panic by avoiding the use of the BUG_ON macro. Checkpatch detected this issue. The WARN_ON macro is not needed as such cases shouldn't happen and they were introduced for debugging purposes. Signed-off-by: Laura Garcia Liebana <nev...@gmail.com> --- Changes

[PATCH v2] staging: nvec: Avoid the use of BUG_ON

2016-02-23 Thread Laura Garcia Liebana
Prevent a kernel panic by avoiding the use of the BUG_ON macro. Checkpatch detected this issue. Signed-off-by: Laura Garcia Liebana <nev...@gmail.com> --- Changes in v2: - According to Marc Dietrich, module creator, the WARN_ON macro is not needed as such cases shouldn't