Skip to content

Commit

Permalink
Documentation/connector/cn_test.c comment unused cn_test_want_notify()
Browse files Browse the repository at this point in the history
Currently cn_test_want_notify() has no user.

So add an ifdef and a comment which tells us to not remove it.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jaswinder Singh Rajput authored and torvalds committed Jun 18, 2009
1 parent 0821962 commit 28f06c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Documentation/connector/cn_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ void cn_test_callback(void *data)
msg->seq, msg->ack, msg->len, (char *)msg->data);
}

/*
* Do not remove this function even if no one is using it as
* this is an example of how to get notifications about new
* connector user registration
*/
#if 0
static int cn_test_want_notify(void)
{
struct cn_ctl_msg *ctl;
Expand Down Expand Up @@ -117,6 +123,7 @@ static int cn_test_want_notify(void)
kfree_skb(skb);
return -EINVAL;
}
#endif

static u32 cn_test_timer_counter;
static void cn_test_timer_func(unsigned long __data)
Expand Down

0 comments on commit 28f06c6

Please sign in to comment.