Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370121
b: refs/heads/master
c: cc87e0f
h: refs/heads/master
i:
  370119: db3ee9d
v: v3
  • Loading branch information
David Howells authored and Al Viro committed May 1, 2013
1 parent 0b84c41 commit b59ea88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c4558a26ff661b5299942ce2b735f3cab4aed1e5
refs/heads/master: cc87e0fff1e639c4c7832075b8cdd89ab30d2a1f
1 change: 0 additions & 1 deletion trunk/drivers/staging/rtl8192u/r8192U.h
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,6 @@ typedef struct r8192_priv {
/*stats*/
struct Stats stats;
struct iw_statistics wstats;
struct proc_dir_entry *dir_dev;

/*RX stuff*/
// u32 *rxring;
Expand Down
18 changes: 6 additions & 12 deletions trunk/drivers/staging/rtl8192u/r8192U_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,20 +669,19 @@ static const struct rtl8192_proc_file rtl8192_proc_files[] = {
void rtl8192_proc_init_one(struct net_device *dev)
{
const struct rtl8192_proc_file *f;
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
struct proc_dir_entry *dir;

if (rtl8192_proc) {
priv->dir_dev = proc_mkdir_data(dev->name, 0, rtl8192_proc, dev);
if (!priv->dir_dev) {
dir = proc_mkdir_data(dev->name, 0, rtl8192_proc, dev);
if (!dir) {
RT_TRACE(COMP_ERR, "Unable to initialize /proc/net/rtl8192/%s\n",
dev->name);
return;
}

for (f = rtl8192_proc_files; f->name[0]; f++) {
if (!proc_create_data(f->name, S_IFREG | S_IRUGO,
priv->dir_dev,
rtl8192_proc_fops, f->show)) {
if (!proc_create_data(f->name, S_IFREG | S_IRUGO, dir,
&rtl8192_proc_fops, f->show)) {
RT_TRACE(COMP_ERR, "Unable to initialize "
"/proc/net/rtl8192/%s/%s\n",
dev->name, f->name);
Expand All @@ -694,12 +693,7 @@ void rtl8192_proc_init_one(struct net_device *dev)

void rtl8192_proc_remove_one(struct net_device *dev)
{
struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);

if (priv->dir_dev) {
remove_proc_subtree(dev->name, rtl8192_proc);
priv->dir_dev = NULL;
}
remove_proc_subtree(dev->name, rtl8192_proc);
}

/****************************************************************************
Expand Down

0 comments on commit b59ea88

Please sign in to comment.