ieee1394: safer definition of empty macros
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 2 Aug 2006 16:44:00 +0000 (18:44 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 17 Sep 2006 17:31:20 +0000 (19:31 +0200)
commit611aa19fd60fe57059d9972fa6ae29f7472a13cf
treea87f71ef393eec3e904291d1d5da1f2fdc5bb11b
parent4b60912e52bc6ccdf587f2b92f3435ee2678d730
ieee1394: safer definition of empty macros

A deactivated macro, defined as "#define foo(bar)", will result in
silent corruption if somebody forgets a semicolon after a call to foo.
Replace it by "#define foo(bar) do {} while (0)" which will reveal any
respective syntax errors.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/dv1394.c
drivers/ieee1394/ieee1394_core.c
drivers/ieee1394/ieee1394_types.h
drivers/ieee1394/ohci1394.c
drivers/ieee1394/raw1394.c
drivers/ieee1394/sbp2.c
drivers/ieee1394/video1394.c