mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
ANDROID: dm: Minor cleanup
Compacts the linear device arguments removing the unnecessary variables. Bug: 27175947 Change-Id: I157170eebe3c0f89a68ae05870a1060f188d0da0 Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
This commit is contained in:
committed by
Dmitry Shmidt
parent
d0706bcd6e
commit
7e70218c26
@@ -572,13 +572,10 @@ static inline bool test_mult_overflow(sector_t a, u32 b)
|
||||
static int add_as_linear_device(struct dm_target *ti, char *dev)
|
||||
{
|
||||
/*Move to linear mapping defines*/
|
||||
char *linear_table_args[DM_LINEAR_ARGS];
|
||||
char offset[] = "0";
|
||||
char *linear_table_args[DM_LINEAR_ARGS] = {dev,
|
||||
DM_LINEAR_TARGET_OFFSET};
|
||||
int err = 0;
|
||||
|
||||
linear_table_args[0] = dev;
|
||||
linear_table_args[1] = offset;
|
||||
|
||||
android_verity_target.dtr = linear_target.dtr,
|
||||
android_verity_target.map = linear_target.map,
|
||||
android_verity_target.status = linear_target.status,
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
#define DM_MSG_PREFIX "android-verity"
|
||||
|
||||
#define DM_LINEAR_ARGS 2
|
||||
#define DM_LINEAR_TARGET_OFFSET "0"
|
||||
|
||||
/*
|
||||
* There can be two formats.
|
||||
* if fec is present
|
||||
|
||||
Reference in New Issue
Block a user