added delarations of ret variable in comedi_map and unmap
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 7 May 2001 15:58:45 +0000 (15:58 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 7 May 2001 15:58:45 +0000 (15:58 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 1b359531c44bc202166d872af2a5332661e15158..be01e241b6b310c273ae47067a89b5de382747f6 100644 (file)
@@ -950,6 +950,7 @@ int comedi_map(unsigned int minor, unsigned int subdev, void **ptr)
 {
        comedi_device *dev;
        comedi_subdevice *s;
+       int ret;
 
        if((ret=minor_to_dev(minor,&dev))<0)
                return ret;
@@ -973,6 +974,7 @@ int comedi_unmap(unsigned int minor, unsigned int subdev)
 {
        comedi_device *dev;
        comedi_subdevice *s;
+       int ret;
 
        if((ret=minor_to_dev(minor,&dev))<0)
                return ret;