lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52014E0F.10404@cogentembedded.com>
Date:	Tue, 06 Aug 2013 23:27:11 +0400
From:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To:	Tuomas Tynkkynen <ttynkkynen@...dia.com>
CC:	"balbi@...com" <balbi@...com>,
	"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
	"swarren@...dotorg.org" <swarren@...dotorg.org>,
	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
	"stern@...land.harvard.edu" <stern@...land.harvard.edu>
Subject: Re: [PATCH v2 6/6] usb: host: tegra: Tegra30 support

Hello.

On 08/06/2013 11:16 PM, Tuomas Tynkkynen wrote:

> [...]

>>> +	match = of_match_device(tegra_ehci_of_match, &pdev->dev);
>>> +	if (!match) {
>>> +		dev_err(&pdev->dev, "Error: No device match found\n");
>>> +		return -ENODEV;
>>> +	}
>>> +	soc_config = (struct tegra_ehci_soc_config *)match->data;

>>      Aren't casts from 'const void *' automatic?

>> WBR, Sergei

> Indeed they are, but those explicit casts seem to be used in many places in the kernel.

    I suspect people just don't know C well enough. They are also being 
gradually removed.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ