瀏覽代碼

drivers:iio:accel:mma8452: removed unwanted return statements

Removed unwanted return statements from the function
mma8452_set_freefall_mode.

Signed-off-by: Bijosh Thykkoottathil <bijosh.t@hotmail.com>
Acked-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Bijosh Thykkoottathil 9 年之前
父節點
當前提交
0ddfd85713
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      drivers/iio/accel/mma8452.c

+ 1 - 5
drivers/iio/accel/mma8452.c

@@ -634,11 +634,7 @@ static int mma8452_set_freefall_mode(struct mma8452_data *data, bool state)
 		val |= MMA8452_FF_MT_CFG_OAE;
 		val |= MMA8452_FF_MT_CFG_OAE;
 	}
 	}
 
 
-	val = mma8452_change_config(data, chip->ev_cfg, val);
-	if (val)
-		return val;
-
-	return 0;
+	return mma8452_change_config(data, chip->ev_cfg, val);
 }
 }
 
 
 static int mma8452_set_hp_filter_frequency(struct mma8452_data *data,
 static int mma8452_set_hp_filter_frequency(struct mma8452_data *data,