summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/sort.c
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2012-05-26 12:05:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-04 21:08:10 -0700
commit0b3edf760a56cf5372d2dafa35b400561ddc0eb0 (patch)
treeead6afb5efb1d1b788440775464ac5aee5a8cc7b /drivers/staging/bcm/sort.c
parent774bea8314c3fa59a977e64114286d6e3341b7cc (diff)
downloadop-kernel-dev-0b3edf760a56cf5372d2dafa35b400561ddc0eb0.zip
op-kernel-dev-0b3edf760a56cf5372d2dafa35b400561ddc0eb0.tar.gz
Staging: bcm: Remove typedef for _packet_info and call directly.
This patch removes typedef for _packet_info, changes the name of the struct from _packet_info to bcm_packet_info. In addition, any calls to the following typedefs "PacketInfo, _packet_info" are changed to call the struct directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm/sort.c')
-rw-r--r--drivers/staging/bcm/sort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/bcm/sort.c b/drivers/staging/bcm/sort.c
index 63c966a..79585e4 100644
--- a/drivers/staging/bcm/sort.c
+++ b/drivers/staging/bcm/sort.c
@@ -13,8 +13,8 @@
static int compare_packet_info(void const *a, void const *b)
{
- PacketInfo const *pa = a;
- PacketInfo const *pb = b;
+ struct bcm_packet_info const *pa = a;
+ struct bcm_packet_info const *pb = b;
if (!pa->bValid || !pb->bValid)
return 0;
@@ -27,7 +27,7 @@ VOID SortPackInfo(PMINI_ADAPTER Adapter)
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG,
DBG_LVL_ALL, "<=======");
- sort(Adapter->PackInfo, NO_OF_QUEUES, sizeof(PacketInfo),
+ sort(Adapter->PackInfo, NO_OF_QUEUES, sizeof(struct bcm_packet_info),
compare_packet_info, NULL);
}
OpenPOWER on IntegriCloud