]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: fix kmalloc parameters
authorVitaly Osipov <vitaly.osipov@gmail.com>
Tue, 27 May 2014 12:26:12 +0000 (22:26 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 18:55:29 +0000 (11:55 -0700)
commit1172fcfeae732eaec0985b8a2c438f5db013806a
treeb81875917e7b1d6819654779e58c94fd9da31645
parentdbec51b5e6fd09052784beeda3e31e7035e15a27
staging: rtl8712: fix kmalloc parameters

After the commit 725a38c replaced _malloc with kmalloc, smatch picked up a
couple of new warnings. This fixes warnings:

warn: struct type mismatch 'writePTM_parm vs setdig_parm'
warn: struct type mismatch 'writePTM_parm vs setra_parm'

The difference is u8 vs unsigned char.

Signed-off-by: Vitaly Osipov <vitaly.osipov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_cmd.c