staging: unisys: fix parameters for SPAR_VBUS_CHANNEL_OK_CLIENT macro
authorBenjamin Romer <benjamin.romer@unisys.com>
Thu, 23 Oct 2014 18:31:07 +0000 (14:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:15 +0000 (10:33 +0800)
Remove the unused logCtx parameter and fix the CamelCase name:

pChannel => ch

Update calls to the macro to remove the unused second parameter.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/channels/vbuschannel.h
drivers/staging/unisys/uislib/uislib.c

index aa2b34badf37072347e759bd085fbb2a7ad101cf..c1a73df43f35dd598acd3f3353de3756a4db511f 100644 (file)
@@ -43,13 +43,13 @@ static const uuid_le spar_vbus_channel_protocol_uuid =
 * increment this. */
 #define SPAR_VBUS_CHANNEL_PROTOCOL_VERSIONID 1
 
-#define SPAR_VBUS_CHANNEL_OK_CLIENT(pChannel, logCtx)       \
-       (spar_check_channel_client(pChannel,                            \
-                                  spar_vbus_channel_protocol_uuid,     \
-                                  "vbus",                              \
-                                  sizeof(struct ultra_vbus_channel_protocol),\
-                                  SPAR_VBUS_CHANNEL_PROTOCOL_VERSIONID, \
-                                  SPAR_VBUS_CHANNEL_PROTOCOL_SIGNATURE)) \
+#define SPAR_VBUS_CHANNEL_OK_CLIENT(ch)       \
+       spar_check_channel_client(ch,                           \
+                                 spar_vbus_channel_protocol_uuid,      \
+                                 "vbus",                               \
+                                 sizeof(struct ultra_vbus_channel_protocol),\
+                                 SPAR_VBUS_CHANNEL_PROTOCOL_VERSIONID, \
+                                 SPAR_VBUS_CHANNEL_PROTOCOL_SIGNATURE)
 
 #define ULTRA_VBUS_CHANNEL_OK_SERVER(actualBytes)    \
        (spar_check_channel_server(spar_vbus_channel_protocol_uuid,     \
index 6e087345565199955ce5ba8add1c37bdcd6acada..354b6827bac418289a17b4eb75b8ae31daadf8cf 100644 (file)
@@ -142,7 +142,7 @@ init_vbus_channel(u64 channelAddr, u32 channelBytes)
                rc = NULL;
                goto Away;
        }
-       if (!SPAR_VBUS_CHANNEL_OK_CLIENT(pChan, NULL)) {
+       if (!SPAR_VBUS_CHANNEL_OK_CLIENT(pChan)) {
                ERRDRV("%s channel cannot be used", __func__);
                uislib_iounmap(pChan);
                rc = NULL;
This page took 0.026084 seconds and 5 git commands to generate.