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: Will Deacon <willdeacon@google.com>
Change-Id: Ide9c2e89fb12b846eb8739b302d1b742fc7eb6b5
This commit is contained in:
Will Deacon
2020-12-15 13:47:00 +00:00
committed by Greg Kroah-Hartman
parent d28e9f5181
commit 72fce5a313

View File

@@ -1382,7 +1382,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);
@@ -1399,7 +1398,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;
}