mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7921: fix warning Using plain integer as NULL pointer
Changed "0 to NULL" to avoid below sparse warnings
.../mt76/mt7921/acpi_sar.c:64:68: sparse: Using plain integer as NULL pointer
Fixes: ab79a7d7a96f ("mt76: mt7921: introduce ACPI SAR support")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Deren Wu <[email protected]>
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ free:
|
||||
static int
|
||||
mt7921_asar_acpi_read_mtcl(struct mt7921_dev *dev, u8 **table, u8 *version)
|
||||
{
|
||||
*version = (mt7921_acpi_read(dev, MT7921_ACPI_MTCL, table, 0) < 0)
|
||||
*version = (mt7921_acpi_read(dev, MT7921_ACPI_MTCL, table, NULL) < 0)
|
||||
? 1 : 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user