It's really just memset(), so call that instead.
Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
}
EXPORT_SYMBOL_GPL(CsrMemCpy);
-void *CsrMemSet(void *dest, u8 c, size_t count)
-{
- return memset(dest, c, count);
-}
-EXPORT_SYMBOL_GPL(CsrMemSet);
-
void *CsrMemMove(void *dest, const void *src, size_t count)
{
return memmove(dest, src, count);
#define CsrStrCmp(s1, s2) ((s32) strcmp((s1), (s2)))
#define CsrStrNCmp(s1, s2, n) ((s32) strncmp((s1), (s2), (n)))
#define CsrStrChr strchr
-#define CsrMemSet memset
#define CsrStrLen strlen
#else /* !CSR_USE_STDC_LIB */
void *CsrMemCpy(void *dest, const void *src, size_t count);
s32 CsrStrCmp(const char *string1, const char *string2);
s32 CsrStrNCmp(const char *string1, const char *string2, size_t count);
char *CsrStrChr(const char *string, char c);
-void *CsrMemSet(void *dest, u8 c, size_t count);
size_t CsrStrLen(const char *string);
#endif /* !CSR_USE_STDC_LIB */
s32 CsrVsnprintf(char *string, size_t count, const char *format, va_list args);
{
return NULL;
}
- CsrMemSet(card, 0, sizeof(card_t));
+ memset(card, 0, sizeof(card_t));
card->sdio_if = sdio;
}
/* Dynamic queue reservation */
- CsrMemSet(&card->dynamic_slot_data, 0, sizeof(card_dynamic_slot_t));
+ memset(&card->dynamic_slot_data, 0, sizeof(card_dynamic_slot_t));
for (i = 0; i < UNIFI_NO_OF_TX_QS; i++)
{
q_t *sigq;
u16 nslots, i;
- CsrMemSet(hipqosinfo, 0, sizeof(unifi_HipQosInfo));
+ memset(hipqosinfo, 0, sizeof(unifi_HipQosInfo));
nslots = card->config_data.num_fromhost_data_slots;
(u8)(((signal_length >> 8) & 0xf) | (SDIO_CMD_SIGNAL << 4));
CsrMemCpy(card->fh_buffer.ptr + 2, packed_sigptr, signal_length);
- CsrMemSet(card->fh_buffer.ptr + 2 + signal_length, 0,
+ memset(card->fh_buffer.ptr + 2 + signal_length, 0,
total_length - (2 + signal_length));
#ifdef CSR_WIFI_HIP_NOISY
(u8)(((signal_length >> 8) & 0xf) | (SDIO_CMD_SIGNAL << 4));
CsrMemCpy(card->fh_buffer.ptr + 2, packed_sigptr, signal_length);
- CsrMemSet(card->fh_buffer.ptr + 2 + signal_length, 0,
+ memset(card->fh_buffer.ptr + 2 + signal_length, 0,
total_length - (2 + signal_length));
#ifdef CSR_WIFI_HIP_NOISY
{
padding_chunks = (data_round / sig_units) - chunks_in_last_block;
- CsrMemSet(card->fh_buffer.ptr, 0, padding_chunks * sig_units);
+ memset(card->fh_buffer.ptr, 0, padding_chunks * sig_units);
for (i = 0; i < padding_chunks; i++)
{
card->fh_buffer.ptr[1] = SDIO_CMD_PADDING << 4;
/* Zero out the rest of the buffer (This isn't needed, but it
* makes debugging things later much easier). */
- CsrMemSet(buf + data_len, 0, write_len - data_len);
+ memset(buf + data_len, 0, write_len - data_len);
}
else
{
{
return NULL;
}
- CsrMemSet(newnode, 0, sizeof(coredump_buffer));
+ memset(newnode, 0, sizeof(coredump_buffer));
/* Allocate chip memory zone capture buffers */
for (i = 0; i < HIP_CDUMP_NUM_ZONES; i++)
newnode->zone[i] = newzone;
if (newzone != NULL)
{
- CsrMemSet(newzone, 0, zone_size);
+ memset(newzone, 0, zone_size);
}
else
{
ct.ioffset = 0;
ct.iread = readfn;
- CsrMemSet(fwinfo, 0, sizeof(xbv1_t));
+ memset(fwinfo, 0, sizeof(xbv1_t));
fwinfo->mode = xbv_unknown;
/* File must start with XBV1 triplet */
return NULL;
}
- CsrMemSet(patch_buf, 0xdd, patch_buf_size);
+ memset(patch_buf, 0xdd, patch_buf_size);
/* Write XBV + VERF headers */
patch_offs += write_xbv_header(patch_buf, patch_offs, 0);
if (pktBulkDataLength > 0) {
pktBulkData = (u8 *)CsrPmemAlloc(pktBulkDataLength);
- CsrMemSet(pktBulkData, 0, pktBulkDataLength);
+ memset(pktBulkData, 0, pktBulkDataLength);
} else {
unifi_error(priv, "uf_send_pkt_to_encrypt() : invalid buffer\n");
return;