usb: gadget: remove useless cast
authorSalah Triki <salah.triki@gmail.com>
Sat, 31 Jul 2021 17:18:38 +0000 (18:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 10:31:27 +0000 (12:31 +0200)
commit90059e9395cae00d79ecb1f7e1e702756416bc6a
treece5abf976f7320f089d9d5d29fef2bd609bd6022
parent9311a531064be7e136e13df672959c635463be9e
usb: gadget: remove useless cast

Remove the cast done by ERR_PTR() and PTR_ERR() since data is of type char
* and fss_prepare_buffer() should returns a value of this type.

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Link: https://lore.kernel.org/r/20210731171838.GA912463@pc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_fs.c