linux-generic: shm: clean up and added debug info
linux-generic: shm: clean up and added debug info

Added error checks to odp_shm_free and cleaned up the code.

Signed-off-by: Petri Savolainen <d528fd253b9aaf78fa72edbcc6249e82047f6ce6@linaro.org>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

erachmi/odp,kalray/odp-mppa,ravineet-singh/odp,ravineet-singh/odp,nmorey/odp,ravineet-singh/odp,mike-holmes-linaro/odp,ravineet-singh/odp,nmorey/odp,kalray/odp-mppa,kalray/odp-mppa,dkrot/odp,dkrot/odp,kalray/odp-mppa,dkrot/odp,kalray/odp-mppa,rsalveti/odp,kalray/odp-mppa,kalray/odp-mppa,dkrot/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp,nmorey/odp,erachmi/odp,erachmi/odp,erachmi/odp,rsalveti/odp,mike-holmes-linaro/odp,rsalveti/odp,nmorey/odp,rsalveti/odp,rsalveti/odp