Skip to contentSkip to conversation

HSI: omap_ssi_port: remove null check from FAM

PATCH Applied Rosen Penev 2 participants 2 messages Mar 21 – Mar 25 HSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HSI: omap_ssi_port: remove null check from FAM

A flexible array member is never NULL.

---
 drivers/hsi/controllers/omap_ssi_port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hsi/controllers/omap_ssi_port.c +1 -1
index 50dde968febe..73932d7257d3 100644
@@ -1118,7 +1118,7 @@ static int ssi_port_probe(struct platform_device *pd)
 
 	dev_dbg(&pd->dev, "init ssi port...\n");
 
-	if (!ssi->port || !omap_ssi->port) {
+	if (!omap_ssi->port) {
 		dev_err(&pd->dev, "ssi controller not initialized!\n");
 		err = -ENODEV;
 		goto error;
Signature · 1 line
2.53.0
#1 lore raw
Quoted 3 lines · Rosen Penev

A flexible array member is never NULL.

Applied, thanks!

[1/1] HSI: omap_ssi_port: remove null check from FAM

      commit: 3416431ed281e1d9c729c66e0509803d3fcc5041

Best regards,

Signature · 1 line
Sebastian Reichel <[email protected]>