aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-06-02 14:00:13 -0400
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-06-03 18:38:22 +0200
commitf7fbfb7a42b1a150c2d3860ebd837a3785566a62 (patch)
tree882d52bb545011cc6539fe329ab87806151412e8
parentcc5ca86b42bae9948fada385d3eb1ff7a4d6bb97 (diff)
[PATCH] op_mode should be int, negative values are valid and mean an error
We should not treat negative errno like positive valid modes. Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r--at76_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/at76_usb.c b/at76_usb.c
index 58cbf31..58bddd7 100644
--- a/at76_usb.c
+++ b/at76_usb.c
@@ -4269,7 +4269,7 @@ static void at76_work_external_fw(struct work_struct *work)
struct at76_priv *priv = container_of(work, struct at76_priv,
work_external_fw);
int ret;
- u8 op_mode;
+ int op_mode;
mutex_lock(&priv->mtx);