03 Oct, 2014
1 commit
-
The following patch fixes the checkpatch.pl warning:
ERROR: do not use C99 // commentsSigned-off-by: Esra Altintas
Signed-off-by: Greg Kroah-Hartman
29 Sep, 2014
4 commits
-
This patch merges three lines into one, removing unecessary
if check.Signed-off-by: Tapasweni Pathak
Reviewed-by: Himangi Saraogi
Signed-off-by: Greg Kroah-Hartman -
This patch fixes this sparse warning:
drivers/staging/vt6655/device_main.c:385:40: warning: mixing different enum types
drivers/staging/vt6655/device_main.c:385:40: int enum _VIA_BB_TYPE versus
drivers/staging/vt6655/device_main.c:385:40: int enum _VIA_PKT_TYPESigned-off-by: Gulsah Kose
Acked-by: Julia Lawall
Signed-off-by: Greg Kroah-Hartman -
This patch fixes checkpatch.pl error in file device_main.c
ERROR: space required before the open parenthesis '('Signed-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman -
This patch fixes checkpatch.pl error in file device_main.c
ERROR: space required after that ';' (ctx:VxV)Signed-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman
24 Sep, 2014
5 commits
-
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Just print driver name with dev_err removing the string formatting.
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
This patch fixes checkpatch.pl error in baseband.c file
ERROR : that open brace { should be on the previous lineSigned-off-by: Tapasweni Pathak
Signed-off-by: Greg Kroah-Hartman -
This patch fixes checkpatch.pl warning in aes_ccmp.c file
WARNING : else is not generally useful after a break or returnSigned-off-by: Tapasweni Pathak
Signed-off-by: Greg Kroah-Hartman -
This patch fixes these error messages found by checkpatch.pl:
ERROR: do not use C99 // commentsSigned-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman
22 Sep, 2014
1 commit
-
We want the fixes in there, and it resolves a merge issue with
drivers/iio/accel/bma180.cSigned-off-by: Greg Kroah-Hartman
20 Sep, 2014
3 commits
-
This removes checkpatch.pl warning
WARNING: line over 80 charactersSigned-off-by: Rajbinder Brar
Signed-off-by: Greg Kroah-Hartman -
This patch fixes these error messages found by checkpatch.pl:
ERROR: do not use C99 // commentsSigned-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman -
->u.generic_elem.len is a user controlled number between 0-255. We
should limit it to avoid memory corruption.Signed-off-by: Dan Carpenter
Signed-off-by: Greg Kroah-Hartman
12 Sep, 2014
3 commits
-
ethtool (and SIOCETHTOOL in particular) is part of Linux since the
pre-git era, it thus makes no sense no sense to make the include of
linux/ethtool.h conditional. Also remove the unused define
DEVICE_ETHTOOL_IOCTL_SUPPORT.Signed-off-by: Tobias Klauser
Signed-off-by: Greg Kroah-Hartman -
Instead of using an own copy of struct net_device_stats in struct
vnt_private, use stats from struct net_device. Also remove the thus
unnecessary device_get_stats(), as it would now just return
netdev->stats, which is the default in dev_get_stats().Signed-off-by: Tobias Klauser
Signed-off-by: Greg Kroah-Hartman -
The pci_state member of struct vnt_private is used nowhere in the code,
so remove it. Supposedly it was used to save the PCI configuration space
which is now done using pci_save_state().Signed-off-by: Tobias Klauser
Signed-off-by: Greg Kroah-Hartman
09 Sep, 2014
1 commit
-
pDevice is never NULL when this function is called remove the check.
This fixes smatch warning
drivers/staging/vt6655/device_main.c:1023 device_free_info() warn: variable dereferenced
before check 'pDevice' (see line 1021)Reported-by: Dan Carpenter
Cc: kbuild@01.org
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman
31 Aug, 2014
22 commits
-
Using the nl80211 header.
Using enum changes
OP_MODE_ADHOC -> NL80211_IFTYPE_ADHOC
OP_MODE_AP -> NL80211_IFTYPE_AP
OP_MODE_INFRASTRUCTURE -> NL80211_IFTYPE_STATION
OP_MODE_UNKNOWN -> NL80211_IFTYPE_UNSPECIFIEDSigned-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
This function should always return __le16, move all endian
correction to here.Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
wCTSDuration is always set to 0.
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
b, wDuration_ba, wReserved, wCTSDuration_ba_f0, wCTSDuration_ba_f1, data and
reserved2.With
b, duration_ba, reserved, cts_duration_ba_f0, cts_duration_ba_f1, data and
reserved2unsigned short is replaced with u16 or __le16 where necessary.
cast void pointer to pvCTS
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
b, wDuration_ba, wReserved, data and reserved2
with
b, duration_ba, reserved, data and reserved2unsigned short is replaced with u16 or __le16 where necessary.
cast void pointer to pvCTS
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
a, wDuration, wReserved, wRTSDuration_f0, wRTSDuration_f1 and data
with
a, duration, reserved, rts_duration_f0, rts_duration_f1 and dataunsigned short is replaced with u16 or __le16 where necessary.
cast void pointer to pvRTS
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
ab, wDuration, wReserved and datawith
ab, duration, reserved and data
replacing unsigned short with u16 and __le16 where necessary.
pvRTS is void pointer.
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
b, a, wDuration_ba, wDuration_aa, wDuration_bb, wReserved, wRTSDuration_ba_f0,
wRTSDuration_aa_f0, wRTSDuration_ba_f1, wRTSDuration_aa_f1 and datawith
b, a, duration_ba, duration_aa, duration_bb, wReserved, rts_duration_ba_f0,
rts_duration_aa_f0, rts_duration_ba_f1, rts_duration_aa_f1 and datareplacing unsigned short with u16 or __le16 where endian correction is necessary.
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
b, a, wDuration_ba, wDuration_aa, wDuration_bb, wReserved and data
with
b, a,duration_ba, duration_aa, duration_bb, reserved and datareplacing unsigned short with u16 or __le16 where endian correction is necessary.
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
ieee80211_cts data needs extra padding with reserved2 set to 0
use IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS to set frame_control
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing SRTSData Data with struct ieee80211_rts data
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
All callers should be __le16.
Fix vGenerateMACHeader duration to __le16 and reverse the endian
conversion.Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replace members
a, wDuration, wTimeStampOff, wDuration_f0, and wDuration_f1;
with
a, duration, time_stamp_off, duration_f0, duration_f1All unsigned short members should be __le16
Creating the new structure in rxtx.h.
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
ab, wDuration and wTimeStampOffwith
ab, duration and time_stamp_offAll unsigned short should be __le16
Structure is moved to rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
b, a, wDuration_b, wDuration_a, wDuration_a_f0, wDuration_a_f1, wTimeStampOff_b and wTimeStampOff_a
with
b, a, duration_b, duration_a, duration_a_f0, duration_a_f1, time_stamp_off_b and time_stamp_off_aAll unsigned short need to be __le16 type.
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replace members
b, a, wDuration_b, wDuration_a, wTimeStampOff_b and wTimeStampOff_a
with
b, a, duration_b, duration_a, time_stamp_off_b and time_stamp_off_aUsing __le16 endian type for unsigned short.
Creating the new structure in rxtx.h
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
wTimeStampOff always needs to be endian corrected.
Create vnt_time_stamp_off to return this value.
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Just do single NULL check on pvRrvTime and return.
If pvRrvTime is NULL none of the if statements are valid.
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
s_uGetRTSCTSRsvTime always needs to return little endian __le16
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replace s_uGetTxRsvTime where endian correction is needed.
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
Replacing members
wRTSTxRrvTime and wTxRrvTime
with
rts_rrv_time and rrv_timeusing __le16 type
Moving structure to rxtx.h
pvRrvTime is a void pointer
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman -
replacing members
wCTSTxRrvTime_ba, wReserved, wTxRrvTime_b and wTxRrvTime_a
with
cts_rrv_time_ba, reserved, rrv_time_b and rrv_time_a;Creating the new structure in rxtx.h and Using __le16 where necessary
pvRrvTime is a void pointer
Signed-off-by: Malcolm Priestley
Signed-off-by: Greg Kroah-Hartman