]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/staging/tidspbridge/pmgr/dspapi.c
staging: ti dspbridge: avoid errors if stream id is zero
authorErnesto Ramos <ernesto@ti.com>
Wed, 28 Jul 2010 21:04:57 +0000 (16:04 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 Aug 2010 00:11:03 +0000 (17:11 -0700)
commit084f70ee096d385e363bd5d309cc7ff24fb98c53
tree85b57c2dde0e43182f8a8173a22902cde7b309db
parent4ec09714a0a5861c3e786967024ddfff00b0add6
staging: ti dspbridge: avoid errors if stream id is zero

As 'zero' can be a perfectly good id, it can be picked up as
a NULL from userspace, avoid issues in API and user apps if stream
handle is zero.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/tidspbridge/pmgr/dspapi.c