add protection against running cf2nand from yaffs2
[openwrt.git] / package / mini_fo / patches / 103-remove_dead_code.patch
1 From: Markus Klotzbuecher <mk@creamnet.de>
2 Date: Tue, 20 Jun 2006 14:50:26 +0000 (+0200)
3 Subject: Removed some dead code (mini_fo_lock) that caused compiling to fail on
4 X-Git-Url: http://www.denx.de/cgi-bin/gitweb.cgi?p=mini_fo.git;a=commitdiff;h=240ede43ad8342334494d36d6d762666f75a1c8e
5
6 Removed some dead code (mini_fo_lock) that caused compiling to fail on
7 recent kernels.
8 ---
9
10 --- a/file.c
11 +++ b/file.c
12 @@ -668,35 +668,6 @@ mini_fo_fasync(int fd, file_t *file, int
13 return (err1 || err2);
14 }
15
16 -
17 -STATIC int
18 -mini_fo_lock(file_t *file, int cmd, struct file_lock *fl)
19 -{
20 - int err = -EINVAL;
21 - file_t *hidden_file = NULL;
22 -
23 - if(!check_mini_fo_file(file))
24 - goto out;
25 -
26 - /* which file shall we lock? */
27 - if(ftohf2(file))
28 - hidden_file = ftohf2(file);
29 - else
30 - hidden_file = ftohf(file);
31 -
32 - if (hidden_file->f_op->lock) {
33 - fl->fl_file = hidden_file;
34 - err = hidden_file->f_op->lock(hidden_file, F_GETLK, fl);
35 - fl->fl_file = file;
36 - } else {
37 - if(posix_test_lock(hidden_file, fl))
38 - err = 0;
39 - }
40 - out:
41 - return err;
42 -}
43 -
44 -
45 struct file_operations mini_fo_dir_fops =
46 {
47 llseek: mini_fo_llseek,
This page took 0.037762 seconds and 5 git commands to generate.