[WCNCR00155755] misc: Fix bad assert usage

[Description]
Fix bad assert usage.

Due to ASSERT() calls will cause the system hanging,
which is unacceptable in real product. Thus, we need
to decrease the impact caused by ASSERT().

Remove ASSERT() calls by:
  i. Adding kernel message to inform users.
  ii. Direct the erroneous case to the error
      handling instead of call ASSERT(0).

Change-Id: Ib0a1374feddaaf5cce4ee729f55d2d89a38fc515
Signed-off-by: Awk Jiang <awk.jiang@mediatek.com>
CR-Id: WCNCR00155755
Feature: misc
(cherry picked from commit 548b3b67ccb35b43f00d9f6f7a2b5e98e167d5b8)
5 files changed