staging: ft1000: Drop unneeded cast on netdev_priv
The result of netdev_priv is already implicitly cast to the type of the left side of the assignment. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ type T; T *x; @@ x = - (T *) netdev_priv(...) // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
528a5691ad
commit
a4820acfaf
1 changed files with 7 additions and 7 deletions
|
@ -116,7 +116,7 @@ struct dsp_image_info {
|
||||||
|
|
||||||
void card_bootload(struct net_device *dev)
|
void card_bootload(struct net_device *dev)
|
||||||
{
|
{
|
||||||
struct ft1000_info *info = (struct ft1000_info *)netdev_priv(dev);
|
struct ft1000_info *info = netdev_priv(dev);
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
u32 *pdata;
|
u32 *pdata;
|
||||||
u32 size;
|
u32 size;
|
||||||
|
@ -148,7 +148,7 @@ void card_bootload(struct net_device *dev)
|
||||||
|
|
||||||
u16 get_handshake(struct net_device *dev, u16 expected_value)
|
u16 get_handshake(struct net_device *dev, u16 expected_value)
|
||||||
{
|
{
|
||||||
struct ft1000_info *info = (struct ft1000_info *)netdev_priv(dev);
|
struct ft1000_info *info = netdev_priv(dev);
|
||||||
u16 handshake;
|
u16 handshake;
|
||||||
u32 tempx;
|
u32 tempx;
|
||||||
int loopcnt;
|
int loopcnt;
|
||||||
|
@ -182,7 +182,7 @@ u16 get_handshake(struct net_device *dev, u16 expected_value)
|
||||||
|
|
||||||
void put_handshake(struct net_device *dev, u16 handshake_value)
|
void put_handshake(struct net_device *dev, u16 handshake_value)
|
||||||
{
|
{
|
||||||
struct ft1000_info *info = (struct ft1000_info *)netdev_priv(dev);
|
struct ft1000_info *info = netdev_priv(dev);
|
||||||
u32 tempx;
|
u32 tempx;
|
||||||
|
|
||||||
if (info->AsicID == ELECTRABUZZ_ID) {
|
if (info->AsicID == ELECTRABUZZ_ID) {
|
||||||
|
@ -198,7 +198,7 @@ void put_handshake(struct net_device *dev, u16 handshake_value)
|
||||||
|
|
||||||
u16 get_request_type(struct net_device *dev)
|
u16 get_request_type(struct net_device *dev)
|
||||||
{
|
{
|
||||||
struct ft1000_info *info = (struct ft1000_info *)netdev_priv(dev);
|
struct ft1000_info *info = netdev_priv(dev);
|
||||||
u16 request_type;
|
u16 request_type;
|
||||||
u32 tempx;
|
u32 tempx;
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ u16 get_request_type(struct net_device *dev)
|
||||||
|
|
||||||
long get_request_value(struct net_device *dev)
|
long get_request_value(struct net_device *dev)
|
||||||
{
|
{
|
||||||
struct ft1000_info *info = (struct ft1000_info *)netdev_priv(dev);
|
struct ft1000_info *info = netdev_priv(dev);
|
||||||
long value;
|
long value;
|
||||||
u16 w_val;
|
u16 w_val;
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ long get_request_value(struct net_device *dev)
|
||||||
|
|
||||||
void put_request_value(struct net_device *dev, long lvalue)
|
void put_request_value(struct net_device *dev, long lvalue)
|
||||||
{
|
{
|
||||||
struct ft1000_info *info = (struct ft1000_info *)netdev_priv(dev);
|
struct ft1000_info *info = netdev_priv(dev);
|
||||||
u16 size;
|
u16 size;
|
||||||
u32 tempx;
|
u32 tempx;
|
||||||
|
|
||||||
|
@ -285,7 +285,7 @@ u16 hdr_checksum(struct pseudo_hdr *pHdr)
|
||||||
int card_download(struct net_device *dev, const u8 *pFileStart,
|
int card_download(struct net_device *dev, const u8 *pFileStart,
|
||||||
size_t FileLength)
|
size_t FileLength)
|
||||||
{
|
{
|
||||||
struct ft1000_info *info = (struct ft1000_info *)netdev_priv(dev);
|
struct ft1000_info *info = netdev_priv(dev);
|
||||||
int Status = SUCCESS;
|
int Status = SUCCESS;
|
||||||
u32 uiState;
|
u32 uiState;
|
||||||
u16 handshake;
|
u16 handshake;
|
||||||
|
|
Loading…
Add table
Reference in a new issue