103-remove_dead_code.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From: Markus Klotzbuecher <[email protected]>
  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. Removed some dead code (mini_fo_lock) that caused compiling to fail on
  6. recent kernels.
  7. ---
  8. --- a/file.c
  9. +++ b/file.c
  10. @@ -668,35 +668,6 @@ mini_fo_fasync(int fd, file_t *file, int
  11. return (err1 || err2);
  12. }
  13. -
  14. -STATIC int
  15. -mini_fo_lock(file_t *file, int cmd, struct file_lock *fl)
  16. -{
  17. - int err = -EINVAL;
  18. - file_t *hidden_file = NULL;
  19. -
  20. - if(!check_mini_fo_file(file))
  21. - goto out;
  22. -
  23. - /* which file shall we lock? */
  24. - if(ftohf2(file))
  25. - hidden_file = ftohf2(file);
  26. - else
  27. - hidden_file = ftohf(file);
  28. -
  29. - if (hidden_file->f_op->lock) {
  30. - fl->fl_file = hidden_file;
  31. - err = hidden_file->f_op->lock(hidden_file, F_GETLK, fl);
  32. - fl->fl_file = file;
  33. - } else {
  34. - if(posix_test_lock(hidden_file, fl))
  35. - err = 0;
  36. - }
  37. - out:
  38. - return err;
  39. -}
  40. -
  41. -
  42. struct file_operations mini_fo_dir_fops =
  43. {
  44. llseek: mini_fo_llseek,