mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 11:54:14 -04:00
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 Signed-off-by: Giuliano Procida <gprocida@google.com>
This commit is contained in:
parent
82262d09f1
commit
21d2a9d7c7
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue