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

Commit 2507a585 authored by Will Deacon's avatar Will Deacon Committed by Giuliano Procida
Browse files

ANDROID: usb: f_accessory: Remove useless assignment



acc_alloc_inst() assigns to a local 'dev' variable, but then never uses
it. Remove the redundant assignment, and the local variable along with
it.

Bug: 173789633
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Change-Id: Ide9c2e89fb12b846eb8739b302d1b742fc7eb6b5
Signed-off-by: default avatarGiuliano Procida <gprocida@google.com>
parent 3d7e7d3f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1299,7 +1299,6 @@ static void acc_free_inst(struct usb_function_instance *fi)
static struct usb_function_instance *acc_alloc_inst(void)
{
	struct acc_instance *fi_acc;
	struct acc_dev *dev;
	int err;

	fi_acc = kzalloc(sizeof(*fi_acc), GFP_KERNEL);
@@ -1316,7 +1315,6 @@ static struct usb_function_instance *acc_alloc_inst(void)

	config_group_init_type_name(&fi_acc->func_inst.group,
					"", &acc_func_type);
	dev = _acc_dev;
	return  &fi_acc->func_inst;
}