mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
qcacld-2.0: Remove usage of f_dentry for Kernel upgrade
qcacld-3.0 to qcacld-2.0 propagation Commit: 78d28e6 ("kill f_dentry macro") Above commit is to remove the marco of f_dentry since Kernel 3.19. Avoid to use the Kernel version check by using the field directly. Change-Id: I7a4b45c62afed402d49d709bb1cb870db352b70e CRs-fixed: 966066
This commit is contained in:
parent
ad0c60c64c
commit
f339ffe870
|
@ -891,7 +891,7 @@ __pktlog_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos)
|
|||
int fold_offset, ppos_data, cur_rd_offset;
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||
struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *)
|
||||
PDE_DATA(file->f_dentry->d_inode);
|
||||
PDE_DATA(file->f_path.dentry->d_inode);
|
||||
#else
|
||||
struct proc_dir_entry *proc_entry = PDE(file->f_dentry->d_inode);
|
||||
struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *)
|
||||
|
|
Loading…
Reference in a new issue