[Bluetooth] Remaining transitions to use kzalloc()
This patch makes the remaining transitions to use kzalloc(). Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
David S. Miller

parent
c2ce920468
commit
25ea6db04a
@@ -75,15 +75,13 @@
|
||||
|
||||
static struct cmtp_application *cmtp_application_add(struct cmtp_session *session, __u16 appl)
|
||||
{
|
||||
struct cmtp_application *app = kmalloc(sizeof(*app), GFP_KERNEL);
|
||||
struct cmtp_application *app = kzalloc(sizeof(*app), GFP_KERNEL);
|
||||
|
||||
BT_DBG("session %p application %p appl %d", session, app, appl);
|
||||
|
||||
if (!app)
|
||||
return NULL;
|
||||
|
||||
memset(app, 0, sizeof(*app));
|
||||
|
||||
app->state = BT_OPEN;
|
||||
app->appl = appl;
|
||||
|
||||
|
Reference in New Issue
Block a user