lkml.org 
[lkml]   [2013]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] ipc/mq: Removed unused def_attr local variable and its initialization in do_create
On 08/12/2013 11:09 AM, Sasikantha Babu wrote:
> In the first patch since we removed calling mq_attr_ok to validate
> mqueue attributes default/ceil values, So removing the unused def_attr
>
> Signed-off-by: Sasikantha Babu <sasikanth.v19@gmail.com>
> ---
> ipc/mqueue.c | 7 -------
> 1 files changed, 0 insertions(+), 7 deletions(-)
>
> diff --git a/ipc/mqueue.c b/ipc/mqueue.c
> index 04ece80..0bcf69c 100644
> --- a/ipc/mqueue.c
> +++ b/ipc/mqueue.c
> @@ -741,13 +741,6 @@ static struct file *do_create(struct ipc_namespace *ipc_ns, struct inode *dir,
> return ERR_PTR(ret);
> /* store for use during create */
> path->dentry->d_fsdata = attr;
> - } else {
> - struct mq_attr def_attr;
> -
> - def_attr.mq_maxmsg = min(ipc_ns->mq_msg_max,
> - ipc_ns->mq_msg_default);
> - def_attr.mq_msgsize = min(ipc_ns->mq_msgsize_max,
> - ipc_ns->mq_msgsize_default);
> }
>
> mode &= ~current_umask();
>

Nak to this patch as well since it depends on the previous patch.


\
 
 \ /
  Last update: 2013-08-15 22:21    [W:0.049 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site