Message ID | 20241212135416.244504-1-andi.shyti@kernel.org |
---|---|
Headers | show |
Series | Qcom Geni exit path cleanups | expand |
> > proto = geni_se_read_proto(&gi2c->se); > > if (proto != GENI_SE_I2C) { > > - geni_se_resources_off(&gi2c->se); > > - clk_disable_unprepare(gi2c->core_clk); > > - return dev_err_probe(dev, -ENXIO, "Invalid proto %d\n", proto); > > + dev_err_probe(dev, -ENXIO, "Invalid proto %d\n", proto); > > + goto err_resources; > > What's about setting ret = -ENXIO before bailing out? Oh yes, sorry, my bad... I snap changed this patch without using my brain. It was better in v1 :-) Thanks Vladimir, Andi