qcacld-3.0: Populate proper return value on failure

1) Function return value is not checked after cds recovery work init,
which may result in improper status to be returned. Return an error
status code if cds recovery work init job is not successful so caller
can know something abnormal happened, such as memory allocation failure.

2) Return value should be checked immediately after invoking cds_init
to make sure no improper init happens.

Change-Id: Ic01436f075f9e1b0a96d3daa6902b598f5f6657e
CRs-Fixed: 2133200
2 files changed
tree: dfec6c92b066f1d29e6177c33dc6d066d2ef76be
  1. components/
  2. core/
  3. uapi/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile
  8. README.txt