The parameter name is commented out to make it clear that the file
descriptor parameter is unused in this function, same as in the ioctl
function. I've added a comment to this effect.


On Sat, Aug 17, 2013 at 3:34 AM, Lorenz Meier <notifications@github.com>wrote:

> In src/drivers/px4io/px4io.cpp:
>
> > @@ -1628,7 +1667,7 @@ class PX4IO : public device::I2C
> >  }
> >
> >  ssize_t
> > -PX4IO::write(file *filp, const char *buffer, size_t len)
> > +PX4IO::write(file */*filp*/, const char *buffer, size_t len)
>
> Why is the file pointer variable here commented out?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/PX4/Firmware/pull/361/files#r5828541>
> .
>