Skip to content

Commit 89b1370

Browse files
Fabio Estevambroonie
authored andcommitted
ASoC: wm8804: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver. Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5771a8c commit 89b1370

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/codecs/wm8804.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,7 @@ int wm8804_probe(struct device *dev, struct regmap *regmap)
623623
return ret;
624624
}
625625

626-
if (wm8804->reset)
627-
gpiod_set_value_cansleep(wm8804->reset, 1);
626+
gpiod_set_value_cansleep(wm8804->reset, 1);
628627

629628
ret = regmap_read(regmap, WM8804_RST_DEVID1, &id1);
630629
if (ret < 0) {

0 commit comments

Comments
 (0)