aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2014-07-31 12:00:59 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-01 17:38:45 -0400
commit30de72dbb54f3ea92fd83f086bc5c00b28277971 (patch)
tree6965033b1e8246c6e7fecdf24dc12490864ff600
parent90f3b509bf9be3a8ce6cbd22474b188eba998d1e (diff)
staging: unisys: remove MEMSET define
Remove the redundant MEMSET define in commontypes.h and fix everyplace that uses it. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/common-spar/include/channels/channel.h2
-rw-r--r--drivers/staging/unisys/common-spar/include/channels/iochannel.h6
-rw-r--r--drivers/staging/unisys/include/commontypes.h1
3 files changed, 4 insertions, 5 deletions
diff --git a/drivers/staging/unisys/common-spar/include/channels/channel.h b/drivers/staging/unisys/common-spar/include/channels/channel.h
index c1ba1de97985..7c85e4308e89 100644
--- a/drivers/staging/unisys/common-spar/include/channels/channel.h
+++ b/drivers/staging/unisys/common-spar/include/channels/channel.h
@@ -290,7 +290,7 @@ typedef struct _SIGNAL_QUEUE_HEADER {
290 290
291#define SignalInit(chan, QHDRFLD, QDATAFLD, QDATATYPE, ver, typ) \ 291#define SignalInit(chan, QHDRFLD, QDATAFLD, QDATATYPE, ver, typ) \
292 do { \ 292 do { \
293 MEMSET(&chan->QHDRFLD, 0, sizeof(chan->QHDRFLD)); \ 293 memset(&chan->QHDRFLD, 0, sizeof(chan->QHDRFLD)); \
294 chan->QHDRFLD.VersionId = ver; \ 294 chan->QHDRFLD.VersionId = ver; \
295 chan->QHDRFLD.Type = typ; \ 295 chan->QHDRFLD.Type = typ; \
296 chan->QHDRFLD.Size = sizeof(chan->QDATAFLD); \ 296 chan->QHDRFLD.Size = sizeof(chan->QDATAFLD); \
diff --git a/drivers/staging/unisys/common-spar/include/channels/iochannel.h b/drivers/staging/unisys/common-spar/include/channels/iochannel.h
index 9f2e1e1abaee..24e11858e0ee 100644
--- a/drivers/staging/unisys/common-spar/include/channels/iochannel.h
+++ b/drivers/staging/unisys/common-spar/include/channels/iochannel.h
@@ -376,7 +376,7 @@ struct uiscmdrsp_scsi {
376 376
377#define SET_NO_DISK_INQUIRY_RESULT(buf, len, lun, lun0notpresent, notpresent) \ 377#define SET_NO_DISK_INQUIRY_RESULT(buf, len, lun, lun0notpresent, notpresent) \
378 do { \ 378 do { \
379 MEMSET(buf, 0, \ 379 memset(buf, 0, \
380 MINNUM(len, \ 380 MINNUM(len, \
381 (unsigned int) NO_DISK_INQUIRY_RESULT_LEN)); \ 381 (unsigned int) NO_DISK_INQUIRY_RESULT_LEN)); \
382 buf[2] = (u8) SCSI_SPC2_VER; \ 382 buf[2] = (u8) SCSI_SPC2_VER; \
@@ -802,7 +802,7 @@ static inline int ULTRA_VHBA_init_channel(ULTRA_IO_CHANNEL_PROTOCOL *x,
802 struct vhba_config_max *max, 802 struct vhba_config_max *max,
803 unsigned char *clientStr, 803 unsigned char *clientStr,
804 u32 clientStrLen, u64 bytes) { 804 u32 clientStrLen, u64 bytes) {
805 MEMSET(x, 0, sizeof(ULTRA_IO_CHANNEL_PROTOCOL)); 805 memset(x, 0, sizeof(ULTRA_IO_CHANNEL_PROTOCOL));
806 x->ChannelHeader.VersionId = ULTRA_VHBA_CHANNEL_PROTOCOL_VERSIONID; 806 x->ChannelHeader.VersionId = ULTRA_VHBA_CHANNEL_PROTOCOL_VERSIONID;
807 x->ChannelHeader.Signature = ULTRA_VHBA_CHANNEL_PROTOCOL_SIGNATURE; 807 x->ChannelHeader.Signature = ULTRA_VHBA_CHANNEL_PROTOCOL_SIGNATURE;
808 x->ChannelHeader.SrvState = CHANNELSRV_UNINITIALIZED; 808 x->ChannelHeader.SrvState = CHANNELSRV_UNINITIALIZED;
@@ -838,7 +838,7 @@ static inline int ULTRA_VNIC_init_channel(ULTRA_IO_CHANNEL_PROTOCOL *x,
838 unsigned char *clientStr, 838 unsigned char *clientStr,
839 u32 clientStrLen, 839 u32 clientStrLen,
840 u64 bytes) { 840 u64 bytes) {
841 MEMSET(x, 0, sizeof(ULTRA_IO_CHANNEL_PROTOCOL)); 841 memset(x, 0, sizeof(ULTRA_IO_CHANNEL_PROTOCOL));
842 x->ChannelHeader.VersionId = ULTRA_VNIC_CHANNEL_PROTOCOL_VERSIONID; 842 x->ChannelHeader.VersionId = ULTRA_VNIC_CHANNEL_PROTOCOL_VERSIONID;
843 x->ChannelHeader.Signature = ULTRA_VNIC_CHANNEL_PROTOCOL_SIGNATURE; 843 x->ChannelHeader.Signature = ULTRA_VNIC_CHANNEL_PROTOCOL_SIGNATURE;
844 x->ChannelHeader.SrvState = CHANNELSRV_UNINITIALIZED; 844 x->ChannelHeader.SrvState = CHANNELSRV_UNINITIALIZED;
diff --git a/drivers/staging/unisys/include/commontypes.h b/drivers/staging/unisys/include/commontypes.h
index 7fdf207297de..3540976fabc2 100644
--- a/drivers/staging/unisys/include/commontypes.h
+++ b/drivers/staging/unisys/include/commontypes.h
@@ -27,7 +27,6 @@
27 27
28typedef u64 GUEST_PHYSICAL_ADDRESS; 28typedef u64 GUEST_PHYSICAL_ADDRESS;
29 29
30#define MEMSET(ptr, val, len) memset(ptr, val, len)
31#define MEMCMP_IO(m1, m2, len) memcmp((void __force *)m1, m2, len) 30#define MEMCMP_IO(m1, m2, len) memcmp((void __force *)m1, m2, len)
32 31
33#define INLINE inline 32#define INLINE inline