]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libfc, fcoe: Remove unnecessary cast by removing inline wrapper
authorRobert Love <robert.w.love@intel.com>
Fri, 27 Feb 2009 18:55:55 +0000 (10:55 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 10 Mar 2009 14:05:35 +0000 (09:05 -0500)
commit0c676d1874bf25d99f98c2521309012874ef63b8
tree6be2387ebfcff7a1a729061b35f1ea6fdd115a46
parent6bf36f057377f3de3ba130c5a71cd398741a7540
[SCSI] libfc, fcoe: Remove unnecessary cast by removing inline wrapper

Comment from "Andrew Morton <akpm@linux-foundation.org>"

> +{
> +     return (struct fcoe_softc *)lport_priv(lp);

unneeded/undesirable cast of void*.  There are probably zillions of
instances of this - there always are.

This whole inline function was unnecessary. The FCoE layer knows
that it's data structure is stored in the lport private data, it
can just access it from lport_priv().

Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/fcoe/fcoe_sw.c
drivers/scsi/fcoe/libfcoe.c
include/scsi/libfcoe.h