mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6a9c657bdc
commit
d28e9f5181
@@ -826,7 +826,6 @@ static long acc_ioctl(struct file *fp, unsigned code, unsigned long value)
|
||||
|
||||
static int acc_open(struct inode *ip, struct file *fp)
|
||||
{
|
||||
printk(KERN_INFO "acc_open\n");
|
||||
if (atomic_xchg(&_acc_dev->open_excl, 1))
|
||||
return -EBUSY;
|
||||
|
||||
@@ -837,8 +836,6 @@ static int acc_open(struct inode *ip, struct file *fp)
|
||||
|
||||
static int acc_release(struct inode *ip, struct file *fp)
|
||||
{
|
||||
printk(KERN_INFO "acc_release\n");
|
||||
|
||||
WARN_ON(!atomic_xchg(&_acc_dev->open_excl, 0));
|
||||
/* indicate that we are disconnected
|
||||
* still could be online so don't touch online flag
|
||||
@@ -913,12 +910,6 @@ int acc_ctrlrequest(struct usb_composite_dev *cdev,
|
||||
*/
|
||||
if (!dev)
|
||||
return -ENODEV;
|
||||
/*
|
||||
printk(KERN_INFO "acc_ctrlrequest "
|
||||
"%02x.%02x v%04x i%04x l%u\n",
|
||||
b_requestType, b_request,
|
||||
w_value, w_index, w_length);
|
||||
*/
|
||||
|
||||
if (b_requestType == (USB_DIR_OUT | USB_TYPE_VENDOR)) {
|
||||
if (b_request == ACCESSORY_START) {
|
||||
@@ -1403,7 +1394,6 @@ static struct usb_function_instance *acc_alloc_inst(void)
|
||||
err = acc_setup();
|
||||
if (err) {
|
||||
kfree(fi_acc);
|
||||
pr_err("Error setting ACCESSORY\n");
|
||||
return ERR_PTR(err);
|
||||
}
|
||||
|
||||
@@ -1430,8 +1420,6 @@ static struct usb_function *acc_alloc(struct usb_function_instance *fi)
|
||||
{
|
||||
struct acc_dev *dev = _acc_dev;
|
||||
|
||||
pr_info("acc_alloc\n");
|
||||
|
||||
dev->function.name = "accessory";
|
||||
dev->function.strings = acc_strings,
|
||||
dev->function.fs_descriptors = fs_acc_descs;
|
||||
|
||||
Reference in New Issue
Block a user