kernel-fxtec-pro1x/drivers/ieee1394
Jonathan Corbet 60aa49243d Rationalize fasync return values
Most fasync implementations do something like:

     return fasync_helper(...);

But fasync_helper() will return a positive value at times - a feature used
in at least one place.  Thus, a number of other drivers do:

     err = fasync_helper(...);
     if (err < 0)
             return err;
     return 0;

In the interests of consistency and more concise code, it makes sense to
map positive return values onto zero where ->fasync() is called.

Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2009-03-16 08:34:35 -06:00
..
config_roms.c
config_roms.h
csr.c
csr.h
csr1212.c
csr1212.h
dma.c
dma.h
dv1394-private.h
dv1394.c Rationalize fasync return values 2009-03-16 08:34:35 -06:00
dv1394.h
eth1394.c
eth1394.h
highlevel.c
highlevel.h
hosts.c
hosts.h
ieee1394-ioctl.h
ieee1394.h
ieee1394_core.c
ieee1394_core.h
ieee1394_hotplug.h
ieee1394_transactions.c
ieee1394_transactions.h
ieee1394_types.h
init_ohci1394_dma.c
iso.c
iso.h
Kconfig
Makefile
nodemgr.c
nodemgr.h
ohci1394.c
ohci1394.h
pcilynx.c
pcilynx.h
raw1394-private.h
raw1394.c
raw1394.h
sbp2.c
sbp2.h
video1394.c
video1394.h