Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07b1c5bc authored by Matt Fleming's avatar Matt Fleming
Browse files

efivarfs: Make 'datasize' unsigned long



There's no reason to declare 'datasize' as an int, since the majority
of the functions it's passed to expect an unsigned long anyway. Plus,
this way we avoid any sign problems during arithmetic.

Acked-by: default avatarJeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent 91716322
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -692,7 +692,7 @@ static ssize_t efivarfs_file_write(struct file *file,
	void *data;
	u32 attributes;
	struct inode *inode = file->f_mapping->host;
	int datasize = count - sizeof(attributes);
	unsigned long datasize = count - sizeof(attributes);
	unsigned long newdatasize;

	if (count < sizeof(attributes))