You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "anchao (via GitHub)" <gi...@apache.org> on 2023/08/29 04:31:46 UTC
[GitHub] [nuttx] anchao commented on a diff in pull request #10418: inode/i_private: remove all unnecessary cast for i_private
anchao commented on code in PR #10418:
URL: https://github.com/apache/nuttx/pull/10418#discussion_r1308181662
##########
drivers/sensors/hdc1008.c:
##########
@@ -741,7 +741,7 @@ static int hdc1008_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
FAR struct inode *inode = filep->f_inode;
FAR struct hdc1008_dev_s *priv =
- (FAR struct hdc1008_dev_s *)inode->i_private;
+ inode->i_private;
Review Comment:
Done
##########
drivers/sensors/hdc1008.c:
##########
@@ -550,7 +550,7 @@ static int hdc1008_close(FAR struct file *filep)
{
FAR struct inode *inode = filep->f_inode;
FAR struct hdc1008_dev_s *priv =
- (FAR struct hdc1008_dev_s *)inode->i_private;
+ inode->i_private;
Review Comment:
Done
##########
drivers/note/noteram_driver.c:
##########
@@ -470,7 +470,7 @@ static int noteram_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
int ret = -ENOSYS;
FAR struct noteram_driver_s *drv =
- (FAR struct noteram_driver_s *)filep->f_inode->i_private;
+ filep->f_inode->i_private;
Review Comment:
Done
##########
drivers/sensors/hdc1008.c:
##########
@@ -518,7 +518,7 @@ static int hdc1008_open(FAR struct file *filep)
{
FAR struct inode *inode = filep->f_inode;
FAR struct hdc1008_dev_s *priv =
- (FAR struct hdc1008_dev_s *)inode->i_private;
+ inode->i_private;
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org