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:
parent
830a4070ad
commit
d7b095701b
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue