efi/capsule-loader: Drop superfluous assignment
In efi_capsule_write() the value 0 assigned to ret is never used. Identified with cppcheck. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Link: https://lore.kernel.org/r/20200223205435.114915-1-xypron.glpk@gmx.de Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
6d2576e480
commit
e0dc26c781
|
@ -168,7 +168,7 @@ static ssize_t efi_capsule_submit_update(struct capsule_info *cap_info)
|
|||
static ssize_t efi_capsule_write(struct file *file, const char __user *buff,
|
||||
size_t count, loff_t *offp)
|
||||
{
|
||||
int ret = 0;
|
||||
int ret;
|
||||
struct capsule_info *cap_info = file->private_data;
|
||||
struct page *page;
|
||||
void *kbuff = NULL;
|
||||
|
|
Loading…
Reference in New Issue