Grow.c remove some pointless casts on 'data_offset'.

'data_offset' is 'unsigned long long' so the cast is pointless.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2013-05-21 15:41:25 +10:00
parent cc3130a786
commit ec787874d9
1 changed files with 2 additions and 4 deletions

6
Grow.c
View File

@ -2193,8 +2193,7 @@ static int set_new_data_offset(struct mdinfo *sra, struct supertype *st,
if (data_offset == INVALID_SECTORS)
info2.new_data_offset = info2.data_offset + min;
else {
if ((unsigned long long)data_offset
< info2.data_offset + min) {
if (data_offset < info2.data_offset + min) {
pr_err("--data-offset too small for %s\n",
dn);
goto release;
@ -2211,8 +2210,7 @@ static int set_new_data_offset(struct mdinfo *sra, struct supertype *st,
if (data_offset == INVALID_SECTORS)
info2.new_data_offset = info2.data_offset - min;
else {
if ((unsigned long long)data_offset
> info2.data_offset - min) {
if (data_offset > info2.data_offset - min) {
pr_err("--data-offset too large for %s\n",
dn);
goto release;