summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky.perez-gonzalez>2008-12-05 10:36:28 -0800
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2008-12-05 10:36:28 -0800
commit09f96306fc2fc308f7854d5d8a17b971d3983702 (patch)
tree2259813c1ad27f34164b066ba8ccd45c8187fcc1
parentdef7326f7e393bc653b94697b5ad8d25bbbf3087 (diff)
wimax: (fb Johannes Berg) don't rely on WIMAX_GNL_OP_MAX
Not really needed -- we have a switch statement later on that will complain in case there is an unknown message. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
-rw-r--r--lib/mc_rx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/mc_rx.c b/lib/mc_rx.c
index c34d687..2bca6a9 100644
--- a/lib/mc_rx.c
+++ b/lib/mc_rx.c
@@ -213,9 +213,6 @@ int wimaxll_gnl_cb(struct nl_msg *msg, void *_mch)
nl_hdr = nlmsg_hdr(msg);
gnl_hdr = nlmsg_data(nl_hdr);
- if (gnl_hdr->cmd >= WIMAX_GNL_OP_MAX)
- goto error_unknown_msg;
-
switch (gnl_hdr->cmd) {
case WIMAX_GNL_OP_MSG_TO_USER:
if (mch->msg_to_user_cb)