staging: unisys: include: remove unused macro spar_signal_init
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Fri, 17 Mar 2017 15:26:56 +0000 (11:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 06:58:45 +0000 (07:58 +0100)
Removed unused macro spar_signal_init from channel.h

Signed-off-by: Sameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/channel.h

index 88fec8176b33ef73cf8c57fa66e969ae7596f82c..e202f5bcb2b4583c73e7f116295c3046ba647ac5 100644 (file)
@@ -211,20 +211,6 @@ struct signal_queue_header {
        u8 filler[12];          /* Pad out to 64 byte cacheline */
 } __packed;
 
-#define spar_signal_init(chan, QHDRFLD, QDATAFLD, QDATATYPE, ver, typ) \
-       do {                                                            \
-               memset(&chan->QHDRFLD, 0, sizeof(chan->QHDRFLD));       \
-               chan->QHDRFLD.version = ver;                            \
-               chan->QHDRFLD.chtype = typ;                             \
-               chan->QHDRFLD.size = sizeof(chan->QDATAFLD);            \
-               chan->QHDRFLD.signal_size = sizeof(QDATATYPE);          \
-               chan->QHDRFLD.sig_base_offset = (u64)(chan->QDATAFLD) - \
-                       (u64)(&chan->QHDRFLD);                          \
-               chan->QHDRFLD.max_slots =                               \
-                       sizeof(chan->QDATAFLD) / sizeof(QDATATYPE);     \
-               chan->QHDRFLD.max_signals = chan->QHDRFLD.max_slots - 1;\
-       } while (0)
-
 /* Generic function useful for validating any type of channel when it is
  * received by the client that will be accessing the channel.
  * Note that <logCtx> is only needed for callers in the EFI environment, and