device-creator, stream-creator: Add a couple of assertions 78/21978/1
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 27 May 2014 07:45:04 +0000 (10:45 +0300)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Wed, 28 May 2014 09:40:05 +0000 (12:40 +0300)
commit13232cf4e0a5b1c4a621afc47742a274ff017d07
tree89307fe2ac76b61de0b25b065ac5a46c15b3845c
parent05f2e529d073131e5a5b3dac863853e1f0fdc236
device-creator, stream-creator: Add a couple of assertions

Klocwork complained that source (in device-creator) and output (in
stream-creator) may be dereferenced if they're NULL. Let's make
Klocwork happy, and the code a bit more obvious to human readers as
well.

Change-Id: I835dd7d9da44e2866a97bc0424001a42c29602a8
src/modules/volume-api/device-creator.c
src/modules/volume-api/stream-creator.c