Skip to content

Commit

Permalink
staging: csr: unifi_wext.h: Remove KERNEL_VERSION checks
Browse files Browse the repository at this point in the history
Signed-off-by: Priit Laes <plaes@plaes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Priit Laes authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent b5008ae commit 457d404
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions drivers/staging/csr/unifi_wext.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,9 @@ uf_iwe_stream_add_point(struct iw_request_info *info, char *start, char *stop,
{
char *new_start;

new_start = iwe_stream_add_point(
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) || defined (IW_REQUEST_FLAG_COMPAT)
info,
#endif
start, stop, piwe, extra);
new_start = iwe_stream_add_point(info, start, stop, piwe, extra);
if (unlikely(new_start == start))
{
return -E2BIG;
}

return (new_start - start);
}
Expand All @@ -91,14 +85,9 @@ uf_iwe_stream_add_event(struct iw_request_info *info, char *start, char *stop,
{
char *new_start;

new_start = iwe_stream_add_event(
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) || defined(IW_REQUEST_FLAG_COMPAT)
info,
#endif
start, stop, piwe, len);
if (unlikely(new_start == start)) {
new_start = iwe_stream_add_event(info, start, stop, piwe, len);
if (unlikely(new_start == start))
return -E2BIG;
}

return (new_start - start);
}
Expand All @@ -109,14 +98,9 @@ uf_iwe_stream_add_value(struct iw_request_info *info, char *stream, char *start,
{
char *new_start;

new_start = iwe_stream_add_value(
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) || defined(IW_REQUEST_FLAG_COMPAT)
info,
#endif
stream, start, stop, piwe, len);
if (unlikely(new_start == start)) {
new_start = iwe_stream_add_value(info, stream, start, stop, piwe, len);
if (unlikely(new_start == start))
return -E2BIG;
}

return (new_start - start);
}
Expand Down

0 comments on commit 457d404

Please sign in to comment.