staging: wlan-ng: prism2mib.c: Drop void pointer cast
Void pointers don't need to be cast to other pointer types. Semantic patch used: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x) [...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0440107039
commit
3e83b0ab50
|
@ -428,7 +428,7 @@ static int prism2mib_uint32(struct mibrec *mib,
|
||||||
struct p80211msg_dot11req_mibset *msg, void *data)
|
struct p80211msg_dot11req_mibset *msg, void *data)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
u32 *uint32 = (u32 *) data;
|
u32 *uint32 = data;
|
||||||
u8 bytebuf[MIB_TMP_MAXLEN];
|
u8 bytebuf[MIB_TMP_MAXLEN];
|
||||||
u16 *wordbuf = (u16 *) bytebuf;
|
u16 *wordbuf = (u16 *) bytebuf;
|
||||||
|
|
||||||
|
@ -475,7 +475,7 @@ static int prism2mib_flag(struct mibrec *mib,
|
||||||
struct p80211msg_dot11req_mibset *msg, void *data)
|
struct p80211msg_dot11req_mibset *msg, void *data)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
u32 *uint32 = (u32 *) data;
|
u32 *uint32 = data;
|
||||||
u8 bytebuf[MIB_TMP_MAXLEN];
|
u8 bytebuf[MIB_TMP_MAXLEN];
|
||||||
u16 *wordbuf = (u16 *) bytebuf;
|
u16 *wordbuf = (u16 *) bytebuf;
|
||||||
u32 flags;
|
u32 flags;
|
||||||
|
@ -533,7 +533,7 @@ static int prism2mib_wepdefaultkey(struct mibrec *mib,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
p80211pstrd_t *pstr = (p80211pstrd_t *) data;
|
p80211pstrd_t *pstr = data;
|
||||||
u8 bytebuf[MIB_TMP_MAXLEN];
|
u8 bytebuf[MIB_TMP_MAXLEN];
|
||||||
u16 len;
|
u16 len;
|
||||||
|
|
||||||
|
@ -660,7 +660,7 @@ static int prism2mib_fragmentationthreshold(struct mibrec *mib,
|
||||||
struct p80211msg_dot11req_mibset *msg,
|
struct p80211msg_dot11req_mibset *msg,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
u32 *uint32 = (u32 *) data;
|
u32 *uint32 = data;
|
||||||
|
|
||||||
if (!isget)
|
if (!isget)
|
||||||
if ((*uint32) % 2) {
|
if ((*uint32) % 2) {
|
||||||
|
@ -705,7 +705,7 @@ static int prism2mib_priv(struct mibrec *mib,
|
||||||
hfa384x_t *hw,
|
hfa384x_t *hw,
|
||||||
struct p80211msg_dot11req_mibset *msg, void *data)
|
struct p80211msg_dot11req_mibset *msg, void *data)
|
||||||
{
|
{
|
||||||
p80211pstrd_t *pstr = (p80211pstrd_t *) data;
|
p80211pstrd_t *pstr = data;
|
||||||
|
|
||||||
switch (mib->did) {
|
switch (mib->did) {
|
||||||
case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{
|
case DIDmib_lnx_lnxConfigTable_lnxRSNAIE:{
|
||||||
|
|
Loading…
Reference in New Issue