]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc: fix RPORT_TO_PRIV and PRIV_TO_RPORT() macros.
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 25 Aug 2009 21:00:45 +0000 (14:00 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:07:40 +0000 (12:07 -0500)
commit7812690d3985c86a58807581c9cfc581530fb9cb
tree480d1304252f34cdb8286ec104850648b852e598
parent8c112c29d43ad75dfb395a410645c5fe1816e1bf
[SCSI] libfc: fix RPORT_TO_PRIV and PRIV_TO_RPORT() macros.

These macros introduce extra undesirable semicolons that keep
them from being used in expressions, and they don't protect
against being passed an expression.

Add parens and remove the semicolons.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
include/scsi/libfc.h