aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Deacon2020-12-15 07:47:00 -0600
committerGiuliano Procida2020-12-30 04:20:46 -0600
commit351bb866d4417f605ee9e5fdc7afe50a5f483deb (patch)
treeef03f32aea4948abcaaede32af2e5afeff9ec54d
parentc314764853fcf53d0c87c7847ac03615610b7aa7 (diff)
downloadkernel-351bb866d4417f605ee9e5fdc7afe50a5f483deb.tar.gz
kernel-351bb866d4417f605ee9e5fdc7afe50a5f483deb.tar.xz
kernel-351bb866d4417f605ee9e5fdc7afe50a5f483deb.zip
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>
-rw-r--r--drivers/usb/gadget/function/f_accessory.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c
index 1f8eea664fd6..fdf55ca81467 100644
--- a/drivers/usb/gadget/function/f_accessory.c
+++ b/drivers/usb/gadget/function/f_accessory.c
@@ -1392,7 +1392,6 @@ static void acc_free_inst(struct usb_function_instance *fi)
1392static struct usb_function_instance *acc_alloc_inst(void) 1392static struct usb_function_instance *acc_alloc_inst(void)
1393{ 1393{
1394 struct acc_instance *fi_acc; 1394 struct acc_instance *fi_acc;
1395 struct acc_dev *dev;
1396 int err; 1395 int err;
1397 1396
1398 fi_acc = kzalloc(sizeof(*fi_acc), GFP_KERNEL); 1397 fi_acc = kzalloc(sizeof(*fi_acc), GFP_KERNEL);
@@ -1409,7 +1408,6 @@ static struct usb_function_instance *acc_alloc_inst(void)
1409 1408
1410 config_group_init_type_name(&fi_acc->func_inst.group, 1409 config_group_init_type_name(&fi_acc->func_inst.group,
1411 "", &acc_func_type); 1410 "", &acc_func_type);
1412 dev = _acc_dev;
1413 return &fi_acc->func_inst; 1411 return &fi_acc->func_inst;
1414} 1412}
1415 1413