diff options
author | Will Deacon | 2020-12-15 07:43:01 -0600 |
---|---|---|
committer | Giuliano Procida | 2020-12-30 04:20:46 -0600 |
commit | c314764853fcf53d0c87c7847ac03615610b7aa7 (patch) | |
tree | ce2ec97583c8314d2429c18946f03dd67434214d | |
parent | 807b7569505b4050baf3842253f3ea7292ab8dff (diff) | |
download | kernel-c314764853fcf53d0c87c7847ac03615610b7aa7.tar.gz kernel-c314764853fcf53d0c87c7847ac03615610b7aa7.tar.xz kernel-c314764853fcf53d0c87c7847ac03615610b7aa7.zip |
ANDROID: usb: f_accessory: Remove useless non-debug prints
Remove some useless print statements, as they can trivially be used to
spam the console and don't report anything meaningful.
Bug: 173789633
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I28052010fc3ec033a2c99efeb3f6c919d54d75c2
Signed-off-by: Giuliano Procida <gprocida@google.com>
-rw-r--r-- | drivers/usb/gadget/function/f_accessory.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/usb/gadget/function/f_accessory.c b/drivers/usb/gadget/function/f_accessory.c index 783d9cd0af9c..1f8eea664fd6 100644 --- a/drivers/usb/gadget/function/f_accessory.c +++ b/drivers/usb/gadget/function/f_accessory.c | |||
@@ -836,7 +836,6 @@ static long acc_ioctl(struct file *fp, unsigned code, unsigned long value) | |||
836 | 836 | ||
837 | static int acc_open(struct inode *ip, struct file *fp) | 837 | static int acc_open(struct inode *ip, struct file *fp) |
838 | { | 838 | { |
839 | printk(KERN_INFO "acc_open\n"); | ||
840 | if (atomic_xchg(&_acc_dev->open_excl, 1)) | 839 | if (atomic_xchg(&_acc_dev->open_excl, 1)) |
841 | return -EBUSY; | 840 | return -EBUSY; |
842 | 841 | ||
@@ -847,8 +846,6 @@ static int acc_open(struct inode *ip, struct file *fp) | |||
847 | 846 | ||
848 | static int acc_release(struct inode *ip, struct file *fp) | 847 | static int acc_release(struct inode *ip, struct file *fp) |
849 | { | 848 | { |
850 | printk(KERN_INFO "acc_release\n"); | ||
851 | |||
852 | WARN_ON(!atomic_xchg(&_acc_dev->open_excl, 0)); | 849 | WARN_ON(!atomic_xchg(&_acc_dev->open_excl, 0)); |
853 | /* indicate that we are disconnected | 850 | /* indicate that we are disconnected |
854 | * still could be online so don't touch online flag | 851 | * still could be online so don't touch online flag |
@@ -923,12 +920,6 @@ int acc_ctrlrequest(struct usb_composite_dev *cdev, | |||
923 | */ | 920 | */ |
924 | if (!dev) | 921 | if (!dev) |
925 | return -ENODEV; | 922 | return -ENODEV; |
926 | /* | ||
927 | printk(KERN_INFO "acc_ctrlrequest " | ||
928 | "%02x.%02x v%04x i%04x l%u\n", | ||
929 | b_requestType, b_request, | ||
930 | w_value, w_index, w_length); | ||
931 | */ | ||
932 | 923 | ||
933 | if (b_requestType == (USB_DIR_OUT | USB_TYPE_VENDOR)) { | 924 | if (b_requestType == (USB_DIR_OUT | USB_TYPE_VENDOR)) { |
934 | if (b_request == ACCESSORY_START) { | 925 | if (b_request == ACCESSORY_START) { |
@@ -1413,7 +1404,6 @@ static struct usb_function_instance *acc_alloc_inst(void) | |||
1413 | err = acc_setup(); | 1404 | err = acc_setup(); |
1414 | if (err) { | 1405 | if (err) { |
1415 | kfree(fi_acc); | 1406 | kfree(fi_acc); |
1416 | pr_err("Error setting ACCESSORY\n"); | ||
1417 | return ERR_PTR(err); | 1407 | return ERR_PTR(err); |
1418 | } | 1408 | } |
1419 | 1409 | ||
@@ -1440,8 +1430,6 @@ static struct usb_function *acc_alloc(struct usb_function_instance *fi) | |||
1440 | { | 1430 | { |
1441 | struct acc_dev *dev = _acc_dev; | 1431 | struct acc_dev *dev = _acc_dev; |
1442 | 1432 | ||
1443 | pr_info("acc_alloc\n"); | ||
1444 | |||
1445 | dev->function.name = "accessory"; | 1433 | dev->function.name = "accessory"; |
1446 | dev->function.strings = acc_strings, | 1434 | dev->function.strings = acc_strings, |
1447 | dev->function.fs_descriptors = fs_acc_descs; | 1435 | dev->function.fs_descriptors = fs_acc_descs; |