Commit fc22c052 authored by Larry Finger's avatar Larry Finger
Browse files

staging: rtl8192e: Convert typedef buffer to struct buffer



Remove typedef from struct.
Rename struct.
Rename uses.

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent e3e37629
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -303,7 +303,7 @@ bool init_firmware(struct net_device *dev)
						goto download_firmware_fail;
					}
					if (fw_entry->size > sizeof(pfirmware->firmware_buf[init_step])) {
						RT_TRACE(COMP_FIRMWARE, "img file size exceed the container buffer fail!\n");
						RT_TRACE(COMP_FIRMWARE, "img file size exceed the container struct buffer fail!\n");
						goto download_firmware_fail;
					}

+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ void RxPktPendingTimeout(unsigned long data)
		pRxTs->RxTimeoutIndicateSeq = 0xffff;

		if (index > REORDER_WIN_SIZE){
			RTLLIB_DEBUG(RTLLIB_DL_ERR, "RxReorderIndicatePacket(): Rx Reorer buffer full!! \n");
			RTLLIB_DEBUG(RTLLIB_DL_ERR, "RxReorderIndicatePacket(): Rx Reorer struct buffer full!! \n");
			spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
			return;
		}
+2 −3
Original line number Diff line number Diff line
@@ -344,13 +344,12 @@ typedef enum _PCI_BRIDGE_VENDOR {
	PCI_BRIDGE_VENDOR_MAX ,
} PCI_BRIDGE_VENDOR;

typedef struct buffer
{
struct buffer {
	struct buffer *next;
	u32 *buf;
	dma_addr_t dma;

} buffer;
};

struct rtl_reg_debug {
        unsigned int  cmd;
+6 −6
Original line number Diff line number Diff line
@@ -761,18 +761,18 @@ do { if (rtllib_debug_level & (level)) \
                        if ((_Comp) & level)							\
                        {                                                                       \
                                int             __i;                                            \
                                u8  buffer[MAX_STR_LEN];					\
                                u8  struct buffer[MAX_STR_LEN];					\
                                int length = (_Len<MAX_STR_LEN)? _Len : (MAX_STR_LEN-1) ;	\
                                memset(buffer, 0, MAX_STR_LEN);					\
                                memcpy(buffer, (u8 *)_Ptr, length );				\
                                memset(struct buffer, 0, MAX_STR_LEN);					\
                                memcpy(struct buffer, (u8 *)_Ptr, length );				\
                                for ( __i=0; __i<MAX_STR_LEN; __i++ )                            \
                                {                                                               \
                                     if ( !PRINTABLE(buffer[__i]) )   buffer[__i] = '?';		\
                                     if ( !PRINTABLE(struct buffer[__i]) )   struct buffer[__i] = '?';		\
                                }                                                               \
                                buffer[length] = '\0';                                          \
                                struct buffer[length] = '\0';                                          \
                                printk("Rtl819x: ");						\
                                printk(_TitleString);                                         \
                                printk(": %d, <%s>\n", _Len, buffer);                         \
                                printk(": %d, <%s>\n", _Len, struct buffer);                         \
                        }
#ifndef ETH_P_PAE
#define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ struct rtllib_crypto_ops {
	/* maximum number of bytes added by encryption; encrypt buf is
	 * allocated with extra_prefix_len bytes, copy of in_buf, and
	 * extra_postfix_len; encrypt need not use all this space, but
	 * the result must start at the beginning of the buffer and correct
	 * the result must start at the beginning of the struct buffer and correct
	 * length must be returned */
	int extra_prefix_len, extra_postfix_len;

Loading