Commit 457d404c authored by Priit Laes's avatar Priit Laes Committed by Greg Kroah-Hartman

staging: csr: unifi_wext.h: Remove KERNEL_VERSION checks

Signed-off-by: default avatarPriit Laes <plaes@plaes.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b5008ae2
...@@ -71,15 +71,9 @@ uf_iwe_stream_add_point(struct iw_request_info *info, char *start, char *stop, ...@@ -71,15 +71,9 @@ uf_iwe_stream_add_point(struct iw_request_info *info, char *start, char *stop,
{ {
char *new_start; char *new_start;
new_start = iwe_stream_add_point( new_start = iwe_stream_add_point(info, start, stop, piwe, extra);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) || defined (IW_REQUEST_FLAG_COMPAT)
info,
#endif
start, stop, piwe, extra);
if (unlikely(new_start == start)) if (unlikely(new_start == start))
{
return -E2BIG; return -E2BIG;
}
return (new_start - start); return (new_start - start);
} }
...@@ -91,14 +85,9 @@ uf_iwe_stream_add_event(struct iw_request_info *info, char *start, char *stop, ...@@ -91,14 +85,9 @@ uf_iwe_stream_add_event(struct iw_request_info *info, char *start, char *stop,
{ {
char *new_start; char *new_start;
new_start = iwe_stream_add_event( new_start = iwe_stream_add_event(info, start, stop, piwe, len);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) || defined(IW_REQUEST_FLAG_COMPAT) if (unlikely(new_start == start))
info,
#endif
start, stop, piwe, len);
if (unlikely(new_start == start)) {
return -E2BIG; return -E2BIG;
}
return (new_start - start); return (new_start - start);
} }
...@@ -109,14 +98,9 @@ uf_iwe_stream_add_value(struct iw_request_info *info, char *stream, char *start, ...@@ -109,14 +98,9 @@ uf_iwe_stream_add_value(struct iw_request_info *info, char *stream, char *start,
{ {
char *new_start; char *new_start;
new_start = iwe_stream_add_value( new_start = iwe_stream_add_value(info, stream, start, stop, piwe, len);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) || defined(IW_REQUEST_FLAG_COMPAT) if (unlikely(new_start == start))
info,
#endif
stream, start, stop, piwe, len);
if (unlikely(new_start == start)) {
return -E2BIG; return -E2BIG;
}
return (new_start - start); return (new_start - start);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment