ath9k: fix an IS_ERR() vs NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 11 Oct 2021 15:18:01 +0000 (18:18 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 13 Oct 2021 05:48:14 +0000 (08:48 +0300)
commit57671351379b2051cfb07fc14e0bead9916a0880
tree8254641d1f96779078ec0e96f7c8b45128805305
parent8cd5c0847160aa9482d7f93ed63c4d72bad70cdf
ath9k: fix an IS_ERR() vs NULL check

The devm_kmemdup() function doesn't return error pointers, it returns
NULL on error.

Fixes: eb3a97a69be8 ("ath9k: fetch calibration data via nvmem subsystem")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211011123533.GA15188@kili
drivers/net/wireless/ath/ath9k/init.c