diff options
author | Joe Perches <joe@perches.com> | 2010-07-12 16:50:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-14 13:52:45 -0400 |
commit | 57674308d00b5ebb639ce53d388e61728e0c7f72 (patch) | |
tree | 357e585c3288c06f058afed3efeb9494005036ea /drivers/net/wireless/iwlwifi/iwl-debugfs.c | |
parent | 447a42c2feb1091f217c1d50000d8cddf39addb5 (diff) |
drivers/net/wireless: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 088a2c13f59b..7b25d1468358 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -1267,7 +1267,7 @@ static ssize_t iwl_dbgfs_ucode_tracing_read(struct file *file, | |||
1267 | char __user *user_buf, | 1267 | char __user *user_buf, |
1268 | size_t count, loff_t *ppos) { | 1268 | size_t count, loff_t *ppos) { |
1269 | 1269 | ||
1270 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 1270 | struct iwl_priv *priv = file->private_data; |
1271 | int pos = 0; | 1271 | int pos = 0; |
1272 | char buf[128]; | 1272 | char buf[128]; |
1273 | const size_t bufsz = sizeof(buf); | 1273 | const size_t bufsz = sizeof(buf); |
@@ -1317,7 +1317,7 @@ static ssize_t iwl_dbgfs_rxon_flags_read(struct file *file, | |||
1317 | char __user *user_buf, | 1317 | char __user *user_buf, |
1318 | size_t count, loff_t *ppos) { | 1318 | size_t count, loff_t *ppos) { |
1319 | 1319 | ||
1320 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 1320 | struct iwl_priv *priv = file->private_data; |
1321 | int len = 0; | 1321 | int len = 0; |
1322 | char buf[20]; | 1322 | char buf[20]; |
1323 | 1323 | ||
@@ -1329,7 +1329,7 @@ static ssize_t iwl_dbgfs_rxon_filter_flags_read(struct file *file, | |||
1329 | char __user *user_buf, | 1329 | char __user *user_buf, |
1330 | size_t count, loff_t *ppos) { | 1330 | size_t count, loff_t *ppos) { |
1331 | 1331 | ||
1332 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 1332 | struct iwl_priv *priv = file->private_data; |
1333 | int len = 0; | 1333 | int len = 0; |
1334 | char buf[20]; | 1334 | char buf[20]; |
1335 | 1335 | ||
@@ -1342,7 +1342,7 @@ static ssize_t iwl_dbgfs_fh_reg_read(struct file *file, | |||
1342 | char __user *user_buf, | 1342 | char __user *user_buf, |
1343 | size_t count, loff_t *ppos) | 1343 | size_t count, loff_t *ppos) |
1344 | { | 1344 | { |
1345 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 1345 | struct iwl_priv *priv = file->private_data; |
1346 | char *buf; | 1346 | char *buf; |
1347 | int pos = 0; | 1347 | int pos = 0; |
1348 | ssize_t ret = -EFAULT; | 1348 | ssize_t ret = -EFAULT; |
@@ -1404,7 +1404,7 @@ static ssize_t iwl_dbgfs_plcp_delta_read(struct file *file, | |||
1404 | char __user *user_buf, | 1404 | char __user *user_buf, |
1405 | size_t count, loff_t *ppos) { | 1405 | size_t count, loff_t *ppos) { |
1406 | 1406 | ||
1407 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 1407 | struct iwl_priv *priv = file->private_data; |
1408 | int pos = 0; | 1408 | int pos = 0; |
1409 | char buf[12]; | 1409 | char buf[12]; |
1410 | const size_t bufsz = sizeof(buf); | 1410 | const size_t bufsz = sizeof(buf); |