Re: [PATCH 5/5] S3C: sdhci: Updating sdhci_s3c_remove module exit function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +       int ptr, dead = 0;
> +       u32 scratch;
> +
> +       scratch = readl(host->ioaddr + SDHCI_INT_STATUS);
> +       if (scratch == (u32)-1)
> +               dead = 1;
> +
> +       sdhci_remove_host(host, dead);

   we can avoid these vars, not that they take a lot resources.
           sdhci_remove_host(host, ~readl(host->ioaddr +
SDHCI_INT_STATUS) ? 0 : 1);
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux