wireless: bcmdhd4361: fix overlapping comparisons
[GitHub/exynos8895/android_kernel_samsung_universal8895.git] / drivers / net / wireless / bcmdhd4361 / wl_android.c
index 27ce4d5bf0d81937f264df28982a8410e7377e55..a63c1a0ec6155e9295c33b9864313e76ab11a3e9 100644 (file)
@@ -7104,7 +7104,7 @@ wl_android_set_adps_mode(struct net_device *dev, const char* string_num)
        adps_mode = bcm_atoi(string_num);
        WL_ERR(("%s: SET_ADPS %d\n", __FUNCTION__, adps_mode));
 
-       if ((adps_mode < 0) && (1 < adps_mode)) {
+       if ((adps_mode < 0) || (1 < adps_mode)) {
                WL_ERR(("%s: Invalid value %d.\n", __FUNCTION__, adps_mode));
                return -EINVAL;
        }