staging: tidspbridge: fix mgr_enum_node_info
authorFelipe Contreras <felipe.contreras@gmail.com>
Fri, 5 Nov 2010 17:01:48 +0000 (17:01 +0000)
committerOmar Ramirez Luna <omar.ramirez@ti.com>
Sat, 5 Feb 2011 02:11:20 +0000 (20:11 -0600)
commitd723818e7c8f20af0a665f5b0c2eda909e069ffa
tree15fc470c5af8502dcec1c11ab8728d05953c4f9e
parent81ea18ec22e9526b4af81e2213747e5afc48f364
staging: tidspbridge: fix mgr_enum_node_info

The current code was always returning a non-zero status value
to userspace applications when this ioctl was called.

The error code was ENODATA, which isn't actually an error,
it's always returned by dcd_enumerate_object() when it hits the
end of list.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
drivers/staging/tidspbridge/rmgr/mgr.c